Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -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_CURRY_RIGHT_FLAG = 16;
const WRAP_CURRY_RIGHT_FLAG = 16
/**
* This method is like `curry` except that arguments are applied to `func`
@@ -21,32 +21,32 @@ const WRAP_CURRY_RIGHT_FLAG = 16;
* @example
*
* const abc = function(a, b, c) {
* return [a, b, c];
* };
* return [a, b, c]
* }
*
* const curried = curryRight(abc);
* const curried = curryRight(abc)
*
* curried(3)(2)(1);
* curried(3)(2)(1)
* // => [1, 2, 3]
*
* curried(2, 3)(1);
* curried(2, 3)(1)
* // => [1, 2, 3]
*
* curried(1, 2, 3);
* curried(1, 2, 3)
* // => [1, 2, 3]
*
* // Curried with placeholders.
* curried(3)(1, _)(2);
* curried(3)(1, _)(2)
* // => [1, 2, 3]
*/
function curryRight(func, arity, guard) {
arity = guard ? undefined : arity;
const result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
result.placeholder = curryRight.placeholder;
return result;
arity = guard ? undefined : arity
const result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity)
result.placeholder = curryRight.placeholder
return result
}
// Assign default placeholders.
curryRight.placeholder = {};
curryRight.placeholder = {}
export default curryRight;
export default curryRight