_.tail

_.tail(array) source npm package Gets all but the first element of array. Since 4.0.0 Arguments array (Array): The array to query. Returns (Array): Returns the slice of array. Example _.tail([1, 2, 3]); // => [2, 3]

_.toPairs

_.toPairs(object) source npm package Creates an array of own enumerable string keyed-value pairs for object which can be consumed by _.fromPairs. If object is a map or set, its entries are returned. Since 4.0.0 Aliases _.entries Arguments object (Object): The object to query. Returns (Array): Returns the key-value pairs. Example function Foo() {   this.a = 1;   this.b = 2; }   Foo.prototype.c = 3;   _.toPairs(new Foo); // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)

_.wrap

_.wrap(value, [wrapper=identity]) source npm package Creates a function that provides value to wrapper as its first argument. Any additional arguments provided to the function are appended to those provided to the wrapper. The wrapper is invoked with the this binding of the created function. Since 0.1.0 Arguments value (*): The value to wrap. [wrapper=identity] (Function): The wrapper function. Returns (Function): Returns the new function. Example var p = _.wrap(_.escape, function(func, t

_.kebabCase

_.kebabCase([string='']) source npm package Converts string to kebab case. Since 3.0.0 Arguments [string=''] (string): The string to convert. Returns (string): Returns the kebab cased string. Example _.kebabCase('Foo Bar'); // => 'foo-bar'   _.kebabCase('fooBar'); // => 'foo-bar'   _.kebabCase('__FOO_BAR__'); // => 'foo-bar'

_.defer

_.defer(func, [args]) source npm package Defers invoking the func until the current call stack has cleared. Any additional arguments are provided to func when it's invoked. Since 0.1.0 Arguments func (Function): The function to defer. [args] (...*): The arguments to invoke func with. Returns (number): Returns the timer id. Example _.defer(function(text) {   console.log(text); }, 'deferred'); // => Logs 'deferred' after one millisecond.

_.head

_.head(array) source npm package Gets the first element of array. Since 0.1.0 Aliases _.first Arguments array (Array): The array to query. Returns (*): Returns the first element of array. Example _.head([1, 2, 3]); // => 1   _.head([]); // => undefined

_.some

_.some(collection, [predicate=_.identity]) source npm package Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy. The predicate is invoked with three arguments: (value, index|key, collection). Since 0.1.0 Arguments collection (Array|Object): The collection to iterate over. [predicate=_.identity] (Function): The function invoked per iteration. Returns (boolean): Returns true if any element passes the predicate check, else fa

_.isSet

_.isSet(value) source npm package Checks if value is classified as a Set object. Since 4.3.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is a set, else false. Example _.isSet(new Set); // => true   _.isSet(new WeakSet); // => false

_.toPairsIn

_.toPairsIn(object) source npm package Creates an array of own and inherited enumerable string keyed-value pairs for object which can be consumed by _.fromPairs. If object is a map or set, its entries are returned. Since 4.0.0 Aliases _.entriesIn Arguments object (Object): The object to query. Returns (Array): Returns the key-value pairs. Example function Foo() {   this.a = 1;   this.b = 2; }   Foo.prototype.c = 3;   _.toPairsIn(new Foo); // => [['a', 1], ['b', 2], ['c', 3]] (iteration o

_.isElement

_.isElement(value) source npm package Checks if value is likely a DOM element. Since 0.1.0 Arguments value (*): The value to check. Returns (boolean): Returns true if value is a DOM element, else false. Example _.isElement(document.body); // => true   _.isElement('<body>'); // => false