_.trimStart

_.trimStart([string=''], [chars=whitespace]) source npm package Removes leading whitespace or specified characters from string. Since 4.0.0 Arguments [string=''] (string): The string to trim. [chars=whitespace] (string): The characters to trim. Returns (string): Returns the trimmed string. Example _.trimStart('  abc  '); // => 'abc  '   _.trimStart('-_-abc-_-', '_-'); // => 'abc-_-'

_.trimEnd

_.trimEnd([string=''], [chars=whitespace]) source npm package Removes trailing whitespace or specified characters from string. Since 4.0.0 Arguments [string=''] (string): The string to trim. [chars=whitespace] (string): The characters to trim. Returns (string): Returns the trimmed string. Example _.trimEnd('  abc  '); // => '  abc'   _.trimEnd('-_-abc-_-', '_-'); // => '-_-abc'

_.trim

_.trim([string=''], [chars=whitespace]) source npm package Removes leading and trailing whitespace or specified characters from string. Since 3.0.0 Arguments [string=''] (string): The string to trim. [chars=whitespace] (string): The characters to trim. Returns (string): Returns the trimmed string. Example _.trim('  abc  '); // => 'abc'   _.trim('-_-abc-_-', '_-'); // => 'abc'   _.map(['  foo  ', '  bar  '], _.trim); // => ['foo', 'bar']

_.transform

_.transform(object, [iteratee=_.identity], [accumulator]) source npm package An alternative to _.reduce; this method transforms object to a new accumulator object which is the result of running each of its own enumerable string keyed properties thru iteratee, with each invocation potentially mutating the accumulator object. If accumulator is not provided, a new object with the same [[Prototype]] will be used. The iteratee is invoked with four arguments: (accumulator, value, key, object). Iter

_.toUpper

_.toUpper([string='']) source npm package Converts string, as a whole, to upper case just like String#toUpperCase. Since 4.0.0 Arguments [string=''] (string): The string to convert. Returns (string): Returns the upper cased string. Example _.toUpper('--foo-bar--'); // => '--FOO-BAR--'   _.toUpper('fooBar'); // => 'FOOBAR'   _.toUpper('__foo_bar__'); // => '__FOO_BAR__'

_.toString

_.toString(value) source npm package Converts value to a string. An empty string is returned for null and undefined values. The sign of -0 is preserved. Since 4.0.0 Arguments value (*): The value to convert. Returns (string): Returns the converted string. Example _.toString(null); // => ''   _.toString(-0); // => '-0'   _.toString([1, 2, 3]); // => '1,2,3'

_.toSafeInteger

_.toSafeInteger(value) source npm package Converts value to a safe integer. A safe integer can be compared and represented correctly. Since 4.0.0 Arguments value (*): The value to convert. Returns (number): Returns the converted integer. Example _.toSafeInteger(3.2); // => 3   _.toSafeInteger(Number.MIN_VALUE); // => 0   _.toSafeInteger(Infinity); // => 9007199254740991   _.toSafeInteger('3.2'); // => 3

_.toPlainObject

_.toPlainObject(value) source npm package Converts value to a plain object flattening inherited enumerable string keyed properties of value to own properties of the plain object. Since 3.0.0 Arguments value (*): The value to convert. Returns (Object): Returns the converted plain object. Example function Foo() {   this.b = 2; }   Foo.prototype.c = 3;   _.assign({ 'a': 1 }, new Foo); // => { 'a': 1, 'b': 2 }   _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); // => { 'a': 1, 'b': 2, 'c': 

_.toPath

_.toPath(value) source npm package Converts value to a property path array. Since 4.0.0 Arguments value (*): The value to convert. Returns (Array): Returns the new property path array. Example _.toPath('a.b.c'); // => ['a', 'b', 'c']   _.toPath('a[0].b.c'); // => ['a', '0', 'b', 'c']

_.toNumber

_.toNumber(value) source npm package Converts value to a number. Since 4.0.0 Arguments value (*): The value to process. Returns (number): Returns the number. Example _.toNumber(3.2); // => 3.2   _.toNumber(Number.MIN_VALUE); // => 5e-324   _.toNumber(Infinity); // => Infinity   _.toNumber('3.2'); // => 3.2