From 6c09a69991979d307679990a332cd9122382c95b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 22 Oct 2015 21:11:07 -0700 Subject: [PATCH] Add `clamp` to fp mapping. --- lib/fp/mapping.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fp/mapping.js b/lib/fp/mapping.js index b9861e8ef..0ceb7c711 100644 --- a/lib/fp/mapping.js +++ b/lib/fp/mapping.js @@ -64,7 +64,7 @@ module.exports = { 'sortedLastIndexBy,sortedUniqBy,startsWith,sumBy,take,takeRight,takeRightWhile,' + 'takeWhile,throttle,times,trunc,union,uniqBy,uniqueId,without,wrap,xor,zip').split(','), 3: ( - 'assignWith,differenceBy,extendWith,inRange,intersectionBy,isEqualWith,' + + 'assignWith,clamp,differenceBy,extendWith,inRange,intersectionBy,isEqualWith,' + 'isMatchWith,mergeWith,omitBy,pickBy,pullAllBy,reduce,reduceRight,slice,' + 'transform,unionBy,xorBy,zipWith').split(','), 4: @@ -80,6 +80,7 @@ module.exports = { /** Used to map ary to rearg configs by method names. */ 'methodReargMap': { + 'clamp': [2, 0, 1], 'reduce': [2, 0, 1], 'reduceRight': [2, 0, 1], 'slice': [2, 0, 1],