Comparing version 0.8.0 to 0.9.0
@@ -29,4 +29,3 @@ (function (global, factory) { | ||
* | ||
* @when | ||
* You should use this function when you wish to add two numbers together. | ||
* @since v0.1.0 | ||
* | ||
@@ -44,2 +43,5 @@ * @example | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var all = _curry2(function all (fn, xs) { | ||
@@ -57,2 +59,14 @@ var i = 0 | ||
/** | ||
* @since v0.9.0 | ||
*/ | ||
var always = function always (x) { | ||
return function __redash_always__ () { | ||
return x | ||
} | ||
} | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var any = _curry2(function any (fn, xs) { | ||
@@ -81,2 +95,5 @@ var i = 0 | ||
/** | ||
* @since v0.6.0 | ||
*/ | ||
var assoc = _curry3(function assoc (p, v, o) { | ||
@@ -95,2 +112,5 @@ var b = {} | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var concat = _curry2(function concat (as, bs) { | ||
@@ -100,2 +120,11 @@ return _concat.call(as, bs) | ||
/** | ||
* @since v0.9.0 | ||
*/ | ||
var complement = function complement (fn) { | ||
return function () { | ||
return !fn.call(this, arguments) | ||
} | ||
} | ||
var _slice = [].slice | ||
@@ -156,2 +185,5 @@ | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var curryN = _curry2(function curryN (arity, fn) { | ||
@@ -163,6 +195,9 @@ switch (arity) { | ||
case 3: return _curry3(fn) | ||
default: return _curryN(fn.length, [], fn) | ||
default: return _curryN(fn.length, [], fn) | ||
} | ||
}) | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var compose = function compose () { | ||
@@ -183,2 +218,5 @@ var fns = arguments | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var curry = function curry (fn) { | ||
@@ -190,6 +228,9 @@ switch (fn.length) { | ||
case 3: return _curry3(fn) | ||
default: return _curryN(fn.length, [], fn) | ||
default: return _curryN(fn.length, [], fn) | ||
} | ||
} | ||
/** | ||
* @since v0.6.0 | ||
*/ | ||
var dec = function dec (a) { | ||
@@ -203,2 +244,5 @@ return a - 1 | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var equals = _curry2(function equals (a, b) { | ||
@@ -208,2 +252,5 @@ return _equals(a, b) | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var filter = _curry2(function filter (fn, xs) { | ||
@@ -224,2 +271,5 @@ var i = 0 | ||
/** | ||
* @since v0.6.0 | ||
*/ | ||
var find = _curry2(function find (pred, xs) { | ||
@@ -238,6 +288,9 @@ var i = 0 | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var findIndex = _curry2(function findIndex (pred, xs) { | ||
var i = 0 | ||
, len = xs.length | ||
for (; i < len; i++) { | ||
@@ -251,2 +304,5 @@ if (pred(xs[i])) { | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var flatMap = _curry2(function flatMap (fn, xs) { | ||
@@ -273,2 +329,5 @@ var i = 0 | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var flatten = function flatten (xs) { | ||
@@ -295,2 +354,5 @@ var i = 0 | ||
/** | ||
* @since v0.5.0 | ||
*/ | ||
var flattenDeep = function flattenDeep (xs) { | ||
@@ -310,2 +372,5 @@ var i = 0 | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var forEach = _curry2(function forEach (fn, xs) { | ||
@@ -320,2 +385,5 @@ var i = 0 | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var fromPairs = function fromPairs (xs) { | ||
@@ -335,2 +403,5 @@ var y = {} | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var head = function head (xs) { | ||
@@ -340,2 +411,5 @@ return xs[0] | ||
/** | ||
* @since v0.6.0 | ||
*/ | ||
var identity = function (a) { | ||
@@ -345,2 +419,5 @@ return a | ||
/** | ||
* @since v0.6.0 | ||
*/ | ||
var inc = function inc (a) { | ||
@@ -350,6 +427,9 @@ return a + 1 | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var indexOf = _curry2(function indexOf (y, xs) { | ||
var i = 0 | ||
, len = xs.length | ||
for (; i < len; i++) { | ||
@@ -365,2 +445,5 @@ if (xs[i] === y) { | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var last = function last (xs) { | ||
@@ -371,3 +454,3 @@ return xs[xs.length - 1] | ||
/** | ||
* add : (a -> b) -> [a] -> [b] | ||
* map : (a -> b) -> [a] -> [b] | ||
* | ||
@@ -383,2 +466,3 @@ * @description | ||
* | ||
* @since v0.1.0 | ||
* @example | ||
@@ -408,2 +492,4 @@ * _.map((a) => a + 5, [1,2,3,4,5]) // [6,7,8,9,10] | ||
* Merges all own properties of the first object into the second. | ||
* | ||
* @since v0.4.0 | ||
*/ | ||
@@ -427,2 +513,5 @@ var merge = _curry2(function merge (a, b) { | ||
/** | ||
* @since v0.6.0 | ||
*/ | ||
var not = function not (a) { | ||
@@ -432,2 +521,5 @@ return !a | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var of = function of (x) { | ||
@@ -437,2 +529,5 @@ return [x] | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var pipe = function pipe () { | ||
@@ -453,2 +548,5 @@ var fns = arguments | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var prop = _curry2(function prop (p, x) { | ||
@@ -458,2 +556,5 @@ return x[p] | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var propEq = _curry3(function propEq (p, y, x) { | ||
@@ -463,2 +564,5 @@ return x[p] === y | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var rangeBy = _curry3(function rangeBy (inc, i, end) { | ||
@@ -473,4 +577,10 @@ var ys = [] | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var range = rangeBy(1) | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var reduce = _curry3(function reduce (fn, y, xs) { | ||
@@ -486,2 +596,5 @@ var i = 0 | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var reduceRight = _curry3(function reduceRight (fn, y, xs) { | ||
@@ -496,2 +609,5 @@ var i = xs.length - 1 | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var reject = _curry2(function reject (fn, xs) { | ||
@@ -514,2 +630,5 @@ var i = 0 | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var reverse = function reverse (xs) { | ||
@@ -519,2 +638,5 @@ return _reverse.call(xs.slice(0)) | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var tail = function tail (xs) { | ||
@@ -524,2 +646,5 @@ return xs.slice(1) | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var take = _curry2(function take (n, xs) { | ||
@@ -529,2 +654,5 @@ return xs.slice(0, n) | ||
/** | ||
* @since v0.1.0 | ||
*/ | ||
var takeUntil = _curry2(function takeUntil (fn, xs) { | ||
@@ -542,2 +670,5 @@ var i = 0 | ||
/** | ||
* @since v0.5.0 | ||
*/ | ||
var times = _curry2(function times (fn, n) { | ||
@@ -553,2 +684,5 @@ var i = 0 | ||
/** | ||
* @since v0.4.0 | ||
*/ | ||
var toLower = function toLower (a) { | ||
@@ -558,2 +692,5 @@ return a.toLowerCase() | ||
/** | ||
* @since v0.4.0 | ||
*/ | ||
var toUpper = function toUpper (a) { | ||
@@ -563,2 +700,5 @@ return a.toUpperCase() | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var tap = function (fn) { | ||
@@ -571,2 +711,5 @@ return function tapped (a) { | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var toPairs = function toPairs (a) { | ||
@@ -584,2 +727,5 @@ var ys = [] | ||
/** | ||
* @since v0.7.0 | ||
*/ | ||
var without = _curry2(function without (as, bs) { | ||
@@ -610,2 +756,5 @@ var ys = [] | ||
/** | ||
* @since v0.3.0 | ||
*/ | ||
var zip = _curry2(function zip (as, bs) { | ||
@@ -622,2 +771,5 @@ var i = 0 | ||
/** | ||
* @since v0.3.0 | ||
*/ | ||
var zipObj = _curry2(function zipObj (keys, vals) { | ||
@@ -636,5 +788,7 @@ var i = 0 | ||
exports.all = all; | ||
exports.always = always; | ||
exports.any = any; | ||
exports.assoc = assoc; | ||
exports.concat = concat; | ||
exports.complement = complement; | ||
exports.compose = compose; | ||
@@ -641,0 +795,0 @@ exports.curry = curry; |
{ | ||
"name": "redash", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/redash.js", |
16868
695