class Aliases
Defined in: nodash.js, line 2523
Underscore.
Defined in: nodash.js, line 2533 • Show code
all: NoDash.every, // Underscore.
Underscore.
Defined in: nodash.js, line 2534 • Show code
any: NoDash.some, // Underscore.
Underscore.
Defined in: nodash.js, line 2535 • Show code
contains: NoDash.includes, // Underscore.
Underscore. LoDash.
Defined in: nodash.js, line 2542 • Show code
drop: NoDash.rest, // Underscore. LoDash.
LoDash.
Defined in: nodash.js, line 2544 • Show code
dropRight: NoDash.initial, // LoDash.
Underscore. LoDash.
Defined in: nodash.js, line 2532 • Show code
each: NoDash.forEach, // Underscore. LoDash.
Underscore. LoDash.
Defined in: nodash.js, line 2537 • Show code
extend: NoDash.assign, // Underscore. LoDash.
Underscore. LoDash.
Defined in: nodash.js, line 2576 • Show code
findKey: NoDash.findIndex, // Underscore. LoDash.
Standard. Underscore. LoDash.
Defined in: nodash.js, line 2545 • Show code
flatten: NoDash.flat, // Standard. Underscore. LoDash.
LoDash.
Defined in: nodash.js, line 2546 • Show code
flattenDepth: NoDash.flat, // LoDash.
LoDash.
Defined in: nodash.js, line 2578 • Show code
forOwn: NoDash.forEach, // LoDash.
LoDash.
Defined in: nodash.js, line 2547 • Show code
fromPairs: NoDash.fromEntries, // LoDash.
Underscore. LoDash.
Defined in: nodash.js, line 2577 • Show code
has: NoDash.hasOwn, // Underscore. LoDash.
Underscore. LoDash.
Defined in: nodash.js, line 2548 • Show code
head: NoDash.first, // Underscore. LoDash.
Underscore. LoDash.
Defined in: nodash.js, line 2579 • Show code
invert: NoDash.flip, // Underscore. LoDash.
Underscore. LoDash.
Defined in: nodash.js, line 2538 • Show code
isArray: Array.isArray, // Underscore. LoDash.
LoDash.
Defined in: nodash.js, line 2553 • Show code
keyBy: NoDash.indexBy, // LoDash.
LoDash.
Defined in: nodash.js, line 2580 • Show code
mapValues: NoDash.map, // LoDash.
LoDash.
Defined in: nodash.js, line 2574 • Show code
maxBy: NoDash.max, // LoDash.
LoDash.
Defined in: nodash.js, line 2575 • Show code
minBy: NoDash.min, // LoDash.
LoDash.
Defined in: nodash.js, line 2584 • Show code
nth: NoDash.at, // LoDash.
Underscore.
Defined in: nodash.js, line 2582 • Show code
pairs: NoDash.entries, // Underscore.
LoDash.
Defined in: nodash.js, line 2551 • Show code
remove: NoDash.reject, // LoDash.
LoDash.
Defined in: nodash.js, line 2573 • Show code
sampleSize: NoDash.shuffle, // LoDash.
Underscore. LoDash.
Defined in: nodash.js, line 2543 • Show code
tail: NoDash.rest, // Underscore. LoDash.
Underscore. LoDash.
Defined in: nodash.js, line 2549 • Show code
take: NoDash.first, // Underscore. LoDash.
LoDash.
Defined in: nodash.js, line 2550 • Show code
takeRight: NoDash.last, // LoDash.
LoDash.
Defined in: nodash.js, line 2581 • Show code
toPairs: NoDash.entries, // LoDash.
LoDash.
Defined in: nodash.js, line 2583 • Show code
transform: NoDash.reduce, // LoDash.
Standard.
Defined in: nodash.js, line 2540 • Show code
trimLeft: NoDash.trimStart, // Standard.
Standard.
Defined in: nodash.js, line 2541 • Show code
trimRight: NoDash.trimEnd, // Standard.
Underscore. LoDash.
Defined in: nodash.js, line 2536 • Show code
uniq: NoDash.unique, // Underscore. LoDash.
LoDash.
Defined in: nodash.js, line 2552 • Show code
zipObject: NoDash.object, // LoDash.
LoDash.
Name | Types | Notes |
---|---|---|
value | array | |
object |
Defined in: nodash.js, line 2587 • Show code
flattenDeep: function (value) { return NoDash.flat(value, Infinity) },
Underscore. LoDash.
Defined in: nodash.js, line 2539 • Show code
isEqual: function (a, b) { return a == b }, // Underscore. LoDash.
Underscore. LoDash.
, …args
Defined in: nodash.js, lines 2589-2592 (4 lines) • Show code
partial: function (func /* , ...args */) {
var args = [func, undefined].concat(NoDash.rest(arguments))
return NoDash.bind.apply(undefined, args)
},
Returns a random member of value
.
Name | Types | Notes |
---|---|---|
value | array | |
object | ||
n | int | Exists for compatibility with Underscore’s un:sample() and LoDash’s lo:sample(); if given, sample() works just like shuffle() in NoDash. |
omitted |
See also shuffle() that returns several random members of value
.
Defined in: nodash.js, lines 2566-2572 (7 lines) • Show code
sample: function (value, n) {
if (arguments.length > 1) {
return NoDash.shuffle(v, n)
} else {
return NoDash.first(NoDash.shuffle(value, 1))
}
},