_.property

_.property(path) source npm package Creates a function that returns the value at path of a given object. Since 2.4.0 Arguments path (Array|string): The path of the property to get. Returns (Function): Returns the new accessor function. Example var objects = [   { 'a': { 'b': 2 } },   { 'a': { 'b': 1 } } ];   _.map(objects, _.property('a.b')); // => [2, 1]   _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); // => [1, 2]

_.propertyOf

_.propertyOf(object) source npm package The opposite of _.property; this method creates a function that returns the value at a given path of object. Since 3.0.0 Arguments object (Object): The object to query. Returns (Function): Returns the new accessor function. Example var array = [0, 1, 2],     object = { 'a': array, 'b': array, 'c': array };   _.map(['a[2]', 'c[0]'], _.propertyOf(object)); // => [2, 0]   _.map([['a', '2'], ['c', '0']], _.propertyOf(object)); // => [2, 0]

_.pickBy

_.pickBy(object, [predicate=_.identity]) source npm package Creates an object composed of the object properties predicate returns truthy for. The predicate is invoked with two arguments: (value, key). Since 4.0.0 Arguments object (Object): The source object. [predicate=_.identity] (Function): The function invoked per property. Returns (Object): Returns the new object. Example var object = { 'a': 1, 'b': '2', 'c': 3 };   _.pickBy(object, _.isNumber); // => { 'a': 1, 'c': 3 }

_.pick

_.pick(object, [paths]) source npm package Creates an object composed of the picked object properties. Since 0.1.0 Arguments object (Object): The source object. [paths] (...(string|string[])): The property paths to pick. Returns (Object): Returns the new object. Example var object = { 'a': 1, 'b': '2', 'c': 3 };   _.pick(object, ['a', 'c']); // => { 'a': 1, 'c': 3 }

_.partition

_.partition(collection, [predicate=_.identity]) source npm package Creates an array of elements split into two groups, the first of which contains elements predicate returns truthy for, the second of which contains elements predicate returns falsey for. The predicate is invoked with one argument: (value). Since 3.0.0 Arguments collection (Array|Object): The collection to iterate over. [predicate=_.identity] (Function): The function invoked per iteration. Returns (Array): Returns the array

_.partialRight

_.partialRight(func, [partials]) source npm package This method is like _.partial except that partially applied arguments are appended to the arguments it receives.The _.partialRight.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for partially applied arguments.Note: This method doesn't set the "length" property of partially applied functions. Since 1.0.0 Arguments func (Function): The function to partially apply arguments to. [partials] (...*): Th

_.partial

_.partial(func, [partials]) source npm package Creates a function that invokes func with partials prepended to the arguments it receives. This method is like _.bind except it does not alter the this binding.The _.partial.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for partially applied arguments.Note: This method doesn't set the "length" property of partially applied functions. Since 0.2.0 Arguments func (Function): The function to partially appl

_.parseInt

_.parseInt(string, [radix=10]) source npm package Converts string to an integer of the specified radix. If radix is undefined or 0, a radix of 10 is used unless value is a hexadecimal, in which case a radix of 16 is used.Note: This method aligns with the ES5 implementation of parseInt. Since 1.1.0 Arguments string (string): The string to convert. [radix=10] (number): The radix to interpret value by. Returns (number): Returns the converted integer. Example _.parseInt('08'); // => 8   _.

_.padEnd

_.padEnd([string=''], [length=0], [chars=' ']) source npm package Pads string on the right side if it's shorter than length. Padding characters are truncated if they exceed length. Since 4.0.0 Arguments [string=''] (string): The string to pad. [length=0] (number): The padding length. [chars=' '] (string): The string used as padding. Returns (string): Returns the padded string. Example _.padEnd('abc', 6); // => 'abc   '   _.padEnd('abc', 6, '_-'); // => 'abc_-_'   _.padEnd('abc', 3)

_.padStart

_.padStart([string=''], [length=0], [chars=' ']) source npm package Pads string on the left side if it's shorter than length. Padding characters are truncated if they exceed length. Since 4.0.0 Arguments [string=''] (string): The string to pad. [length=0] (number): The padding length. [chars=' '] (string): The string used as padding. Returns (string): Returns the padded string. Example _.padStart('abc', 6); // => '   abc'   _.padStart('abc', 6, '_-'); // => '_-_abc'   _.padStart('a