Class Aliases

class Aliases
This isn’t a class but an index of function aliases available on the main NoDash class

Defined in: nodash.js, line 2523

Description (skip)

This isn’t a class but an index of function aliases available on the main NoDash class.

Aliases improve COMPATIBILITY with standard ECMAScript, Underscore and LoDash API.

Use Show code to see the function targeted by an alias.

Properties

all

Underscore.

Defined in: nodash.js, line 2533Show code

all:            NoDash.every,           // Underscore.
any

Underscore.

Defined in: nodash.js, line 2534Show code

any:            NoDash.some,            // Underscore.
contains

Underscore.

Defined in: nodash.js, line 2535Show code

contains:       NoDash.includes,        // Underscore.
drop

Underscore. LoDash.

Defined in: nodash.js, line 2542Show code

drop:           NoDash.rest,            // Underscore. LoDash.
dropRight

LoDash.

Defined in: nodash.js, line 2544Show code

dropRight:      NoDash.initial,         // LoDash.
each

Underscore. LoDash.

Defined in: nodash.js, line 2532Show code

each:           NoDash.forEach,         // Underscore. LoDash.
extend

Underscore. LoDash.

Defined in: nodash.js, line 2537Show code

extend:         NoDash.assign,          // Underscore. LoDash.
findKey

Underscore. LoDash.

Defined in: nodash.js, line 2576Show code

findKey:        NoDash.findIndex,       // Underscore. LoDash.
flatten

Standard. Underscore. LoDash.

Defined in: nodash.js, line 2545Show code

flatten:        NoDash.flat,            // Standard. Underscore. LoDash.
flattenDepth

LoDash.

Defined in: nodash.js, line 2546Show code

flattenDepth:   NoDash.flat,            // LoDash.
forOwn

LoDash.

Defined in: nodash.js, line 2578Show code

forOwn:         NoDash.forEach,         // LoDash.
fromPairs

LoDash.

Defined in: nodash.js, line 2547Show code

fromPairs:      NoDash.fromEntries,     // LoDash.
has

Underscore. LoDash.

Defined in: nodash.js, line 2577Show code

has:            NoDash.hasOwn,          // Underscore. LoDash.
head

Underscore. LoDash.

Defined in: nodash.js, line 2548Show code

head:           NoDash.first,           // Underscore. LoDash.
invert

Underscore. LoDash.

Defined in: nodash.js, line 2579Show code

invert:         NoDash.flip,            // Underscore. LoDash.
isArray

Underscore. LoDash.

Defined in: nodash.js, line 2538Show code

isArray:        Array.isArray,          // Underscore. LoDash.
keyBy

LoDash.

Defined in: nodash.js, line 2553Show code

keyBy:          NoDash.indexBy,         // LoDash.
mapValues

LoDash.

Defined in: nodash.js, line 2580Show code

mapValues:      NoDash.map,             // LoDash.
maxBy

LoDash.

Defined in: nodash.js, line 2574Show code

maxBy:          NoDash.max,             // LoDash.
minBy

LoDash.

Defined in: nodash.js, line 2575Show code

minBy:          NoDash.min,             // LoDash.
nth

LoDash.

Defined in: nodash.js, line 2584Show code

nth:            NoDash.at,              // LoDash.
pairs

Underscore.

Defined in: nodash.js, line 2582Show code

pairs:          NoDash.entries,         // Underscore.
remove

LoDash.

Defined in: nodash.js, line 2551Show code

remove:         NoDash.reject,          // LoDash.
sampleSize

LoDash.

Defined in: nodash.js, line 2573Show code

sampleSize:     NoDash.shuffle,         // LoDash.
tail

Underscore. LoDash.

Defined in: nodash.js, line 2543Show code

tail:           NoDash.rest,            // Underscore. LoDash.
take

Underscore. LoDash.

Defined in: nodash.js, line 2549Show code

take:           NoDash.first,           // Underscore. LoDash.
takeRight

LoDash.

Defined in: nodash.js, line 2550Show code

takeRight:      NoDash.last,            // LoDash.
toPairs

LoDash.

Defined in: nodash.js, line 2581Show code

toPairs:        NoDash.entries,         // LoDash.
transform

LoDash.

Defined in: nodash.js, line 2583Show code

transform:      NoDash.reduce,          // LoDash.
trimLeft

Standard.

Defined in: nodash.js, line 2540Show code

trimLeft:       NoDash.trimStart,       // Standard.
trimRight

Standard.

Defined in: nodash.js, line 2541Show code

trimRight:      NoDash.trimEnd,         // Standard.
uniq

Underscore. LoDash.

Defined in: nodash.js, line 2536Show code

uniq:           NoDash.unique,          // Underscore. LoDash.
zipObject

LoDash.

Defined in: nodash.js, line 2552Show code

zipObject:      NoDash.object,          // LoDash.

Methods

flattenDeep ( value )

LoDash.

Arguments
Name Types Notes
valuearray
object

Defined in: nodash.js, line 2587Show code

flattenDeep:    function (value) { return NoDash.flat(value, Infinity) },
isEqual ( a, b )

Underscore. LoDash.

Defined in: nodash.js, line 2539Show code

isEqual:        function (a, b) { return a == b },  // Underscore. LoDash.
partial ( func , ...args )

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)
},
sample ( value [, n] )

Returns a random member of value.

Arguments
Name Types Notes
valuearray
object
nint 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.

Example
_.sample([1, 2, 3])               //=> 3
_.sample({a: 1, b: 2})            //=> {b: 2}
_.keys(_.sample({a: 1, b: 2}))    //=> 'a' (random member's key)

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))
  }
},