From 8bf2046f9e666c2edca11a3f03d1cee2ef4e49e5 Mon Sep 17 00:00:00 2001 From: surunzi Date: Mon, 27 Jun 2016 21:36:07 +0800 Subject: [PATCH] Dev: Update eustia generated util doc --- docs/Util_Api.md | 106 +++++++++++++++++++++++------------------------ package.json | 2 +- src/lib/util.js | 106 +++++++++++++++++++++++------------------------ 3 files changed, 107 insertions(+), 107 deletions(-) diff --git a/docs/Util_Api.md b/docs/Util_Api.md index cb21f95..bb254b8 100644 --- a/docs/Util_Api.md +++ b/docs/Util_Api.md @@ -5,7 +5,7 @@ Get the last element of array. |Name |Type |Desc | - |--------------------------------------| + |------|-----|-------------------------| |arr |array|The array to query | |return|* |The last element of array| @@ -18,7 +18,7 @@ Get the last element of array. Check if value is undefined. |Name |Type |Desc | - |-----------------------------------------| + |------|-------|--------------------------| |val |* |The value to check | |return|boolean|True if value is undefined| @@ -32,7 +32,7 @@ Check if value is undefined. Check if value is the language type of Object. |Name |Type |Desc | - |-----------------------------------------| + |------|-------|--------------------------| |val |* |The value to check | |return|boolean|True if value is an object| @@ -48,7 +48,7 @@ Check if value is the language type of Object. Inherit the prototype methods from one constructor into another. |Name |Type |Desc | - |-------------------------------| + |----------|--------|-----------| |Class |function|Child Class| |SuperClass|function|Super Class| @@ -77,7 +77,7 @@ Inherit the prototype methods from one constructor into another. Checks if key is a direct property. |Name |Type |Desc | - |-----------------------------------------------| + |------|-------|--------------------------------| |obj |object |The object to query | |key |string |The path to check | |return|boolean|True if key is a direct property| @@ -95,7 +95,7 @@ No documentation. Retrieve all the names of object's own and inherited properties. |Name |Type |Desc | - |---------------------------------------------| + |------|------|-------------------------------| |obj |object|The object to query | |return|array |The array of all property names| @@ -112,7 +112,7 @@ Retrieve all the names of object's own and inherited properties. Split different string case to an array. |Name |Type |Desc | - |-----------------------------| + |------|------|---------------| |str |string|String to split| |return|array |Result array | @@ -130,7 +130,7 @@ Split different string case to an array. Convert string to "camelCase". |Name |Type |Desc | - |--------------------------------| + |------|------|------------------| |str |string|String to convert | |return|string|Camel cased string| @@ -146,7 +146,7 @@ Convert string to "camelCase". Convert string to "kebabCase". |Name |Type |Desc | - |--------------------------------| + |------|------|------------------| |str |string|String to convert | |return|string|Kebab cased string| @@ -162,7 +162,7 @@ Convert string to "kebabCase". Get the index at which the first occurrence of value. |Name |Type |Desc | - |---------------------------------------| + |-----------|------|--------------------| |arr |array |Array to search | |val |* |Value to search for | |[fromIdx=0]|number|Index to search from| @@ -176,7 +176,7 @@ Get the index at which the first occurrence of value. Create an array of the own enumerable property names of object. |Name |Type |Desc | - |-----------------------------------------| + |------|------|---------------------------| |obj |object|The object to query | |return|array |The array of property names| @@ -185,7 +185,7 @@ Create an array of the own enumerable property names of object. Check if string ends with the given target string. |Name |Type |Desc | - |----------------------------------------------| + |------|-------|-------------------------------| |str |string |The string to search | |suffix|string |String suffix | |return|boolean|True if string ends with target| @@ -199,7 +199,7 @@ Check if string ends with the given target string. Escapes a string for insertion into HTML, replacing &, <, >, ", `, and ' characters. |Name |Type |Desc | - |------------------------------| + |------|------|----------------| |str |string|String to escape| |return|string|Escaped string | @@ -212,7 +212,7 @@ Escapes a string for insertion into HTML, replacing &, <, >, ", `, and ' charact Escape special chars to be used as literals in RegExp constructors. |Name |Type |Desc | - |------------------------------| + |------|------|----------------| |str |string|string to escape| |return|string|Escaped string | @@ -233,7 +233,7 @@ No documentation. Return the first argument given. |Name |Type|Desc | - |-----------------------| + |------|----|-----------| |val |* |Any value | |return|* |Given value| @@ -246,7 +246,7 @@ Return the first argument given. Alias of Object.prototype.toString. |Name |Type |Desc | - |------------------------------------------------------| + |------|------|----------------------------------------| |value |* |Source value | |return|string|String representation of the given value| @@ -255,7 +255,7 @@ Alias of Object.prototype.toString. Check if value is classified as an arguments object. |Name |Type |Desc | - |---------------------------------------------------| + |------|-------|------------------------------------| |value |* |Value to check | |return|boolean|True if value is an arguments object| @@ -269,9 +269,9 @@ Check if value is classified as an arguments object. Checks if value is classified as a Number primitive or object. - |Name|Type|Desc| - |--------------| - |value|*|The value to check| + |Name |Type |Desc | + |------|-------|-------------------------------------------------| + |value |* |The value to check | |return|boolean|True if value is correctly classified, else false| ## isArrLike @@ -283,7 +283,7 @@ No documentation. Iterates over elements of collection and invokes iteratee for each element. |Name |Type |Desc | - |-----------------------------------------------------| + |--------|-------------|------------------------------| |obj |object\|array|Collection to iterate over | |iteratee|function |Function invoked per iteration| |[ctx] |* |Function context | @@ -297,7 +297,7 @@ Iterates over elements of collection and invokes iteratee for each element. Used to create extend, extendOwn and defaults. |Name |Type |Desc | - |------------------------------------------------| + |--------|--------|------------------------------| |keysFn |function|Function to get object keys | |defaults|boolean |No override when set to true | |return |function|The result function, extend...| @@ -307,7 +307,7 @@ Used to create extend, extendOwn and defaults. Fill in undefined properties in object with the first value present in the following list of defaults objects. |Name |Type |Desc | - |--------------------------------| + |------|------|------------------| |obj |object|Destination object| |*src |object|Sources objects | |return|object|Destination object| @@ -323,14 +323,14 @@ Simple api for handling browser cookies. ## get: get cookie value. |Name |Type |Desc | - |----------------------------------------| + |------|------|--------------------------| |key |string|Cookie key | |return|string|Corresponding cookie value| ## set: set cookie value. |Name |Type |Desc | - |--------------------------------| + |---------|-------|--------------| |key |string |Cookie key | |val |string |Cookie value | |[options]|object |Cookie options| @@ -339,7 +339,7 @@ Simple api for handling browser cookies. ## remove: remove cookie value. |Name |Type |Desc | - |--------------------------------| + |---------|-------|--------------| |key |string |Cookie key | |[options]|object |Cookie options| |return |exports|Module cookie | @@ -355,7 +355,7 @@ Simple api for handling browser cookies. Copy all of the properties in the source objects over to the destination object. |Name |Type |Desc | - |--------------------------------| + |------|------|------------------| |obj |object|Destination object| |*src |object|Sources objects | |return|object|Destination object| @@ -369,7 +369,7 @@ Copy all of the properties in the source objects over to the destination object. Like extend, but only copies own properties over to the destination object. |Name |Type |Desc | - |--------------------------------| + |------|------|------------------| |obj |object|Destination object| |*src |object|Sources objects | |return|object|Destination object| @@ -383,7 +383,7 @@ Like extend, but only copies own properties over to the destination object. Creates an array of the own enumerable property values of object. |Name |Type |Desc | - |--------------------------------------| + |------|------|------------------------| |obj |object|Object to query | |return|array |Array of property values| @@ -400,7 +400,7 @@ No documentation. Check if value is a string primitive. |Name |Type |Desc | - |--------------------------------------------------| + |------|-------|-----------------------------------| |val |* |The value to check | |return|boolean|True if value is a string primitive| @@ -413,7 +413,7 @@ Check if value is a string primitive. Check if value is an `Array` object. |Name |Type |Desc | - |-------------------------------------------------| + |------|-------|----------------------------------| |val |* |The value to check | |return|boolean|True if value is an `Array` object| @@ -427,7 +427,7 @@ Check if value is an `Array` object. Check if value is a boolean primitive. |Name |Type |Desc | - |-----------------------------------------| + |------|-------|--------------------------| |val |* |The value to check | |return|boolean|True if value is a boolean| @@ -442,7 +442,7 @@ Check if value is a boolean primitive. Check if string starts with the given target string. |Name |Type |Desc | - |------------------------------------------------| + |------|-------|---------------------------------| |str |string |The string to search | |prefix|string |String prefix | |return|boolean|True if string starts with prefix| @@ -460,7 +460,7 @@ No documentation. Check if value is a DOM element. |Name |Type |Desc | - |---------------------------------------------| + |------|-------|------------------------------| |val |* |Value to check | |return|boolean|True if value is a DOM element| @@ -473,7 +473,7 @@ Check if value is a DOM element. Check if value is an empty object or array. |Name |Type |Desc | - |-------------------------------------| + |------|-------|----------------------| |val |* |Value to check | |return|boolean|True if value is empty| @@ -487,7 +487,7 @@ Check if value is an empty object or array. Check if value is an error. |Name |Type |Desc | - |----------------------------------------| + |------|-------|-------------------------| |val |* |The value to check | |return|boolean|True if value is an error| @@ -504,7 +504,7 @@ No documentation. Check if value is a function. |Name |Type |Desc | - |------------------------------------------| + |------|-------|---------------------------| |val |* |The value to check | |return|boolean|True if value is a function| @@ -519,8 +519,8 @@ Check if value is a function. Check if keys and values in src are contained in obj. - |Name |Type |Desc | - |-------------------------------------------------| + |Name |Type |Desc | + |------|-------|----------------------------------| |obj |object |Object to inspect | |src |object |Object of property values to match| |return|boolean|True if object is match | @@ -534,7 +534,7 @@ Check if keys and values in src are contained in obj. Check if value is a regular expression. |Name |Type |Desc | - |----------------------------------------------------| + |------|-------|-------------------------------------| |val |* |The value to check | |return|boolean|True if value is a regular expression| @@ -551,7 +551,7 @@ Inject script tag into page with given src value. Remove chars or white-spaces from beginning of string. |Name |Type |Desc | - |-------------------------------------------| + |------|-------------|----------------------| |str |string |The string to trim | |chars |string\|array|The characters to trim| |return|string |The trimmed string | @@ -588,7 +588,7 @@ function Iterates over elements of collection, returning an array of all the values that pass a truth test. |Name |Type |Desc | - |----------------------------------------------------------| + |---------|--------|---------------------------------------| |obj |array |Collection to iterate over | |predicate|function|Function invoked per iteration | |[ctx] |* |Predicate context | @@ -606,7 +606,7 @@ Iterates over elements of collection, returning an array of all the values that Create an array of values by running each element in collection through iteratee. |Name |Type |Desc | - |-----------------------------------------------------| + |--------|-------------|------------------------------| |obj |array\|object|Collection to iterate over | |iteratee|function |Function invoked per iteration| |[ctx] |* |Function context | @@ -621,7 +621,7 @@ Create an array of values by running each element in collection through iteratee Convert value to an array. |Name |Type |Desc | - |-----------------------------| + |------|-----|----------------| |val |* |Value to convert| |return|array|Converted array | @@ -637,7 +637,7 @@ Convert value to an array. Create JavaScript class. |Name |Type |Desc | - |--------------------------------------------------| + |-------|--------|---------------------------------| |methods|object |Public methods | |statics|object |Static methods | |return |function|Function used to create instances| @@ -735,7 +735,7 @@ No documentation. Check if predicate return truthy for any element. |Name |Type |Desc | - |----------------------------------------------------------------------| + |---------|-------------|----------------------------------------------| |obj |array\|object|Collection to iterate over | |predicate|function |Function to invoked per iteration | |ctx |* |Predicate context | @@ -765,7 +765,7 @@ No documentation. Convert value to a number. |Name |Type |Desc | - |------------------------------| + |------|------|----------------| |val |* |Value to process| |return|number|Resulted number | @@ -782,7 +782,7 @@ No documentation. Remove chars or white-spaces from end of string. |Name |Type |Desc | - |-------------------------------------------| + |------|-------------|----------------------| |str |string |The string to trim | |chars |string\|array|The characters to trim| |return|string |The trimmed string | @@ -798,7 +798,7 @@ Remove chars or white-spaces from end of string. Remove chars or white-spaces from beginning end of string. |Name |Type |Desc | - |-------------------------------------------| + |------|-------------|----------------------| |str |string |The string to trim | |chars |string\|array|The characters to trim| |return|string |The trimmed string | @@ -818,7 +818,7 @@ No documentation. Convert value to a string. |Name |Type |Desc | - |------------------------------| + |------|------|----------------| |val |* |Value to convert| |return|string|Resulted string | @@ -834,7 +834,7 @@ Convert value to a string. Generate a globally-unique id. |Name |Type |Desc | - |--------------------------------| + |------|------|------------------| |prefix|string|Id prefix | |return|string|Globally-unique id| @@ -847,7 +847,7 @@ Generate a globally-unique id. Create duplicate-free version of an array. |Name |Type |Desc | - |------------------------------------------------| + |---------|--------|-----------------------------| |arr |array |Array to inspect | |[compare]|function|Function for comparing values| |return |array |New duplicate free array | @@ -861,7 +861,7 @@ Create duplicate-free version of an array. Convert the first character of string to upper case. |Name |Type |Desc | - |-------------------------------| + |------|------|-----------------| |str |string|String to convert| |return|string|Converted string | diff --git a/package.json b/package.json index 282a913..0f09a3c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "release": "webpack && webpack -p --config script/release.js", "dev": "webpack-dev-server", - "utilDoc": "eustia docs src/lib/util.js -f md -o docs/util.md" + "utilDoc": "eustia docs src/lib/util.js -f md -o docs/Util_Api.md" }, "repository": { "type": "git", diff --git a/src/lib/util.js b/src/lib/util.js index 663dcb8..dc689ba 100644 --- a/src/lib/util.js +++ b/src/lib/util.js @@ -10,7 +10,7 @@ module.exports = (function () /* Get the last element of array. * * |Name |Type |Desc | - * |--------------------------------------| + * |------|-----|-------------------------| * |arr |array|The array to query | * |return|* |The last element of array| * @@ -36,7 +36,7 @@ module.exports = (function () /* Check if value is undefined. * * |Name |Type |Desc | - * |-----------------------------------------| + * |------|-------|--------------------------| * |val |* |The value to check | * |return|boolean|True if value is undefined| * @@ -61,7 +61,7 @@ module.exports = (function () /* Check if value is the language type of Object. * * |Name |Type |Desc | - * |-----------------------------------------| + * |------|-------|--------------------------| * |val |* |The value to check | * |return|boolean|True if value is an object| * @@ -90,7 +90,7 @@ module.exports = (function () /* Inherit the prototype methods from one constructor into another. * * |Name |Type |Desc | - * |-------------------------------| + * |----------|--------|-----------| * |Class |function|Child Class| * |SuperClass|function|Super Class| * @@ -137,7 +137,7 @@ module.exports = (function () /* Checks if key is a direct property. * * |Name |Type |Desc | - * |-----------------------------------------------| + * |------|-------|--------------------------------| * |obj |object |The object to query | * |key |string |The path to check | * |return|boolean|True if key is a direct property| @@ -180,7 +180,7 @@ module.exports = (function () /* Retrieve all the names of object's own and inherited properties. * * |Name |Type |Desc | - * |---------------------------------------------| + * |------|------|-------------------------------| * |obj |object|The object to query | * |return|array |The array of all property names| * @@ -212,7 +212,7 @@ module.exports = (function () /* Split different string case to an array. * * |Name |Type |Desc | - * |-----------------------------| + * |------|------|---------------| * |str |string|String to split| * |return|array |Result array | * @@ -250,7 +250,7 @@ module.exports = (function () /* Convert string to "camelCase". * * |Name |Type |Desc | - * |--------------------------------| + * |------|------|------------------| * |str |string|String to convert | * |return|string|Camel cased string| * @@ -293,7 +293,7 @@ module.exports = (function () /* Convert string to "kebabCase". * * |Name |Type |Desc | - * |--------------------------------| + * |------|------|------------------| * |str |string|String to convert | * |return|string|Kebab cased string| * @@ -320,7 +320,7 @@ module.exports = (function () /* Get the index at which the first occurrence of value. * * |Name |Type |Desc | - * |---------------------------------------| + * |-----------|------|--------------------| * |arr |array |Array to search | * |val |* |Value to search for | * |[fromIdx=0]|number|Index to search from| @@ -345,7 +345,7 @@ module.exports = (function () /* Create an array of the own enumerable property names of object. * * |Name |Type |Desc | - * |-----------------------------------------| + * |------|------|---------------------------| * |obj |object|The object to query | * |return|array |The array of property names| */ @@ -372,7 +372,7 @@ module.exports = (function () /* Check if string ends with the given target string. * * |Name |Type |Desc | - * |----------------------------------------------| + * |------|-------|-------------------------------| * |str |string |The string to search | * |suffix|string |String suffix | * |return|boolean|True if string ends with target| @@ -399,7 +399,7 @@ module.exports = (function () /* Escapes a string for insertion into HTML, replacing &, <, >, ", `, and ' characters. * * |Name |Type |Desc | - * |------------------------------| + * |------|------|----------------| * |str |string|String to escape| * |return|string|Escaped string | * @@ -441,7 +441,7 @@ module.exports = (function () /* Escape special chars to be used as literals in RegExp constructors. * * |Name |Type |Desc | - * |------------------------------| + * |------|------|----------------| * |str |string|string to escape| * |return|string|Escaped string | * @@ -510,7 +510,7 @@ module.exports = (function () /* Return the first argument given. * * |Name |Type|Desc | - * |-----------------------| + * |------|----|-----------| * |val |* |Any value | * |return|* |Given value| * @@ -534,7 +534,7 @@ module.exports = (function () /* Alias of Object.prototype.toString. * * |Name |Type |Desc | - * |------------------------------------------------------| + * |------|------|----------------------------------------| * |value |* |Source value | * |return|string|String representation of the given value| */ @@ -556,7 +556,7 @@ module.exports = (function () /* Check if value is classified as an arguments object. * * |Name |Type |Desc | - * |---------------------------------------------------| + * |------|-------|------------------------------------| * |value |* |Value to check | * |return|boolean|True if value is an arguments object| * @@ -581,9 +581,9 @@ module.exports = (function () { /* Checks if value is classified as a Number primitive or object. * - * |Name|Type|Desc| - * |--------------| - * |value|*|The value to check| + * |Name |Type |Desc | + * |------|-------|-------------------------------------------------| + * |value |* |The value to check | * |return|boolean|True if value is correctly classified, else false| */ @@ -622,7 +622,7 @@ module.exports = (function () /* Iterates over elements of collection and invokes iteratee for each element. * * |Name |Type |Desc | - * |-----------------------------------------------------| + * |--------|-------------|------------------------------| * |obj |object\|array|Collection to iterate over | * |iteratee|function |Function invoked per iteration| * |[ctx] |* |Function context | @@ -661,7 +661,7 @@ module.exports = (function () /* Used to create extend, extendOwn and defaults. * * |Name |Type |Desc | - * |------------------------------------------------| + * |--------|--------|------------------------------| * |keysFn |function|Function to get object keys | * |defaults|boolean |No override when set to true | * |return |function|The result function, extend...| @@ -697,7 +697,7 @@ module.exports = (function () /* Fill in undefined properties in object with the first value present in the following list of defaults objects. * * |Name |Type |Desc | - * |--------------------------------| + * |------|------|------------------| * |obj |object|Destination object| * |*src |object|Sources objects | * |return|object|Destination object| @@ -721,14 +721,14 @@ module.exports = (function () * ## get: get cookie value. * * |Name |Type |Desc | - * |----------------------------------------| + * |------|------|--------------------------| * |key |string|Cookie key | * |return|string|Corresponding cookie value| * * ## set: set cookie value. * * |Name |Type |Desc | - * |--------------------------------| + * |---------|-------|--------------| * |key |string |Cookie key | * |val |string |Cookie value | * |[options]|object |Cookie options| @@ -737,7 +737,7 @@ module.exports = (function () * ## remove: remove cookie value. * * |Name |Type |Desc | - * |--------------------------------| + * |---------|-------|--------------| * |key |string |Cookie key | * |[options]|object |Cookie options| * |return |exports|Module cookie | @@ -824,7 +824,7 @@ module.exports = (function () /* Copy all of the properties in the source objects over to the destination object. * * |Name |Type |Desc | - * |--------------------------------| + * |------|------|------------------| * |obj |object|Destination object| * |*src |object|Sources objects | * |return|object|Destination object| @@ -846,7 +846,7 @@ module.exports = (function () /* Like extend, but only copies own properties over to the destination object. * * |Name |Type |Desc | - * |--------------------------------| + * |------|------|------------------| * |obj |object|Destination object| * |*src |object|Sources objects | * |return|object|Destination object| @@ -868,7 +868,7 @@ module.exports = (function () /* Creates an array of the own enumerable property values of object. * * |Name |Type |Desc | - * |--------------------------------------| + * |------|------|------------------------| * |obj |object|Object to query | * |return|array |Array of property values| * @@ -912,7 +912,7 @@ module.exports = (function () /* Check if value is a string primitive. * * |Name |Type |Desc | - * |--------------------------------------------------| + * |------|-------|-----------------------------------| * |val |* |The value to check | * |return|boolean|True if value is a string primitive| * @@ -936,7 +936,7 @@ module.exports = (function () /* Check if value is an `Array` object. * * |Name |Type |Desc | - * |-------------------------------------------------| + * |------|-------|----------------------------------| * |val |* |The value to check | * |return|boolean|True if value is an `Array` object| * @@ -961,7 +961,7 @@ module.exports = (function () /* Check if value is a boolean primitive. * * |Name |Type |Desc | - * |-----------------------------------------| + * |------|-------|--------------------------| * |val |* |The value to check | * |return|boolean|True if value is a boolean| * @@ -987,7 +987,7 @@ module.exports = (function () /* Check if string starts with the given target string. * * |Name |Type |Desc | - * |------------------------------------------------| + * |------|-------|---------------------------------| * |str |string |The string to search | * |prefix|string |String prefix | * |return|boolean|True if string starts with prefix| @@ -1026,7 +1026,7 @@ module.exports = (function () /* Check if value is a DOM element. * * |Name |Type |Desc | - * |---------------------------------------------| + * |------|-------|------------------------------| * |val |* |Value to check | * |return|boolean|True if value is a DOM element| * @@ -1050,7 +1050,7 @@ module.exports = (function () /* Check if value is an empty object or array. * * |Name |Type |Desc | - * |-------------------------------------| + * |------|-------|----------------------| * |val |* |Value to check | * |return|boolean|True if value is empty| * @@ -1082,7 +1082,7 @@ module.exports = (function () /* Check if value is an error. * * |Name |Type |Desc | - * |----------------------------------------| + * |------|-------|-------------------------| * |val |* |The value to check | * |return|boolean|True if value is an error| * @@ -1128,7 +1128,7 @@ module.exports = (function () /* Check if value is a function. * * |Name |Type |Desc | - * |------------------------------------------| + * |------|-------|---------------------------| * |val |* |The value to check | * |return|boolean|True if value is a function| * @@ -1156,8 +1156,8 @@ module.exports = (function () { /* Check if keys and values in src are contained in obj. * - * |Name |Type |Desc | - * |-------------------------------------------------| + * |Name |Type |Desc | + * |------|-------|----------------------------------| * |obj |object |Object to inspect | * |src |object |Object of property values to match| * |return|boolean|True if object is match | @@ -1195,7 +1195,7 @@ module.exports = (function () /* Check if value is a regular expression. * * |Name |Type |Desc | - * |----------------------------------------------------| + * |------|-------|-------------------------------------| * |val |* |The value to check | * |return|boolean|True if value is a regular expression| * @@ -1244,7 +1244,7 @@ module.exports = (function () /* Remove chars or white-spaces from beginning of string. * * |Name |Type |Desc | - * |-------------------------------------------| + * |------|-------------|----------------------| * |str |string |The string to trim | * |chars |string\|array|The characters to trim| * |return|string |The trimmed string | @@ -1403,7 +1403,7 @@ module.exports = (function () /* Iterates over elements of collection, returning an array of all the values that pass a truth test. * * |Name |Type |Desc | - * |----------------------------------------------------------| + * |---------|--------|---------------------------------------| * |obj |array |Collection to iterate over | * |predicate|function|Function invoked per iteration | * |[ctx] |* |Predicate context | @@ -1441,7 +1441,7 @@ module.exports = (function () /* Create an array of values by running each element in collection through iteratee. * * |Name |Type |Desc | - * |-----------------------------------------------------| + * |--------|-------------|------------------------------| * |obj |array\|object|Collection to iterate over | * |iteratee|function |Function invoked per iteration| * |[ctx] |* |Function context | @@ -1479,7 +1479,7 @@ module.exports = (function () /* Convert value to an array. * * |Name |Type |Desc | - * |-----------------------------| + * |------|-----|----------------| * |val |* |Value to convert| * |return|array|Converted array | * @@ -1512,7 +1512,7 @@ module.exports = (function () /* Create JavaScript class. * * |Name |Type |Desc | - * |--------------------------------------------------| + * |-------|--------|---------------------------------| * |methods|object |Public methods | * |statics|object |Static methods | * |return |function|Function used to create instances| @@ -2244,7 +2244,7 @@ module.exports = (function () /* Check if predicate return truthy for any element. * * |Name |Type |Desc | - * |----------------------------------------------------------------------| + * |---------|-------------|----------------------------------------------| * |obj |array\|object|Collection to iterate over | * |predicate|function |Function to invoked per iteration | * |ctx |* |Predicate context | @@ -2537,7 +2537,7 @@ module.exports = (function () /* Convert value to a number. * * |Name |Type |Desc | - * |------------------------------| + * |------|------|----------------| * |val |* |Value to process| * |return|number|Resulted number | * @@ -2583,7 +2583,7 @@ module.exports = (function () /* Remove chars or white-spaces from end of string. * * |Name |Type |Desc | - * |-------------------------------------------| + * |------|-------------|----------------------| * |str |string |The string to trim | * |chars |string\|array|The characters to trim| * |return|string |The trimmed string | @@ -2636,7 +2636,7 @@ module.exports = (function () /* Remove chars or white-spaces from beginning end of string. * * |Name |Type |Desc | - * |-------------------------------------------| + * |------|-------------|----------------------| * |str |string |The string to trim | * |chars |string\|array|The characters to trim| * |return|string |The trimmed string | @@ -2683,7 +2683,7 @@ module.exports = (function () /* Convert value to a string. * * |Name |Type |Desc | - * |------------------------------| + * |------|------|----------------| * |val |* |Value to convert| * |return|string|Resulted string | * @@ -2710,7 +2710,7 @@ module.exports = (function () /* Generate a globally-unique id. * * |Name |Type |Desc | - * |--------------------------------| + * |------|------|------------------| * |prefix|string|Id prefix | * |return|string|Globally-unique id| * @@ -2738,7 +2738,7 @@ module.exports = (function () /* Create duplicate-free version of an array. * * |Name |Type |Desc | - * |------------------------------------------------| + * |---------|--------|-----------------------------| * |arr |array |Array to inspect | * |[compare]|function|Function for comparing values| * |return |array |New duplicate free array | @@ -2777,7 +2777,7 @@ module.exports = (function () /* Convert the first character of string to upper case. * * |Name |Type |Desc | - * |-------------------------------| + * |------|------|-----------------| * |str |string|String to convert| * |return|string|Converted string | *