Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
variety
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
variety
Commits
0ccf6c48
Commit
0ccf6c48
authored
Jun 25, 2012
by
Wes Freeman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing a bit of unused code.
parent
39bcdd7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
variety.js
variety.js
+1
-4
No files found.
variety.js
View file @
0ccf6c48
...
...
@@ -62,7 +62,6 @@ varietyCanHaveChildren = function (v) {
v
instanceof
BinData
;
return
!
specialObject
&&
(
isArray
||
isObject
);
}
db
.
system
.
js
.
save
(
{
_id
:
"varietyCanHaveChildren"
,
value
:
varietyCanHaveChildren
}
);
varietyTypeOf
=
function
(
thing
)
{
if
(
typeof
thing
===
"undefined"
)
{
throw
"varietyTypeOf() requires an argument"
;
}
...
...
@@ -100,10 +99,9 @@ varietyTypeOf = function(thing) {
}
}
}
db
.
system
.
js
.
save
({
_id
:
"varietyTypeOf"
,
value
:
varietyTypeOf
});
// store results here (no map reduce limit!)
var
varietyResults
=
{};
var
countResults
=
0
;
var
addTypeToArray
=
function
(
arr
,
value
)
{
var
t
=
varietyTypeOf
(
value
);
...
...
@@ -152,7 +150,6 @@ var mapRecursive = function(parentKey, obj, level){
// main cursor
db
[
collection
].
find
().
sort
({
_id
:
-
1
}).
limit
(
limit
).
forEach
(
function
(
obj
)
{
countResults
++
;
for
(
var
key
in
obj
)
{
if
(
obj
.
hasOwnProperty
(
key
))
{
var
value
=
obj
[
key
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment