Comparing version 1.4.0 to 1.5.0
@@ -7,3 +7,3 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
@@ -26,2 +26,46 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
var and = exports.and = function and() { | ||
for (var _len = arguments.length, fs = Array(_len), _key = 0; _key < _len; _key++) { | ||
fs[_key] = arguments[_key]; | ||
} | ||
return function () { | ||
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
args[_key2] = arguments[_key2]; | ||
} | ||
return fs.reduce(function (acc, f) { | ||
return acc && f.apply(undefined, args); | ||
}, true); | ||
}; | ||
}; | ||
var or = exports.or = function or() { | ||
for (var _len3 = arguments.length, fs = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { | ||
fs[_key3] = arguments[_key3]; | ||
} | ||
return function () { | ||
for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { | ||
args[_key4] = arguments[_key4]; | ||
} | ||
return fs.reduce(function (acc, f) { | ||
return acc || f.apply(undefined, args); | ||
}, false); | ||
}; | ||
}; | ||
var filter = exports.filter = function filter(f) { | ||
return function (arr) { | ||
return arr.filter(f); | ||
}; | ||
}; | ||
var map = exports.map = function map(f) { | ||
return function (arr) { | ||
return arr.map(f); | ||
}; | ||
}; | ||
var inc = exports.inc = function inc(num) { | ||
@@ -50,4 +94,4 @@ return num + 1; | ||
var pipe = exports.pipe = function pipe() { | ||
for (var _len = arguments.length, fs = Array(_len), _key = 0; _key < _len; _key++) { | ||
fs[_key] = arguments[_key]; | ||
for (var _len5 = arguments.length, fs = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) { | ||
fs[_key5] = arguments[_key5]; | ||
} | ||
@@ -54,0 +98,0 @@ |
{ | ||
"name": "shades", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Lens-like functionality with a lodash-style interface.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72661
821