mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Remove semicolons.
This commit is contained in:
14
ary.js
14
ary.js
@@ -1,7 +1,7 @@
|
||||
import createWrap from './.internal/createWrap.js';
|
||||
import createWrap from './.internal/createWrap.js'
|
||||
|
||||
/** Used to compose bitmasks for function metadata. */
|
||||
const WRAP_ARY_FLAG = 128;
|
||||
const WRAP_ARY_FLAG = 128
|
||||
|
||||
/**
|
||||
* Creates a function that invokes `func`, with up to `n` arguments,
|
||||
@@ -15,13 +15,13 @@ const WRAP_ARY_FLAG = 128;
|
||||
* @returns {Function} Returns the new capped function.
|
||||
* @example
|
||||
*
|
||||
* map(['6', '8', '10'], ary(parseInt, 1));
|
||||
* map(['6', '8', '10'], ary(parseInt, 1))
|
||||
* // => [6, 8, 10]
|
||||
*/
|
||||
function ary(func, n, guard) {
|
||||
n = guard ? undefined : n;
|
||||
n = (func && n == null) ? func.length : n;
|
||||
return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
|
||||
n = guard ? undefined : n
|
||||
n = (func && n == null) ? func.length : n
|
||||
return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n)
|
||||
}
|
||||
|
||||
export default ary;
|
||||
export default ary
|
||||
|
||||
Reference in New Issue
Block a user