prelude-ls
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -150,3 +150,3 @@ var Func, List, Obj, Str, Num, id, isType, replicate, prelude, toString$ = {}.toString; | ||
prelude.lcm = Num.lcm; | ||
prelude.VERSION = '1.0.1'; | ||
prelude.VERSION = '1.0.2'; | ||
module.exports = prelude; | ||
@@ -153,0 +153,0 @@ function curry$(f, bound){ |
@@ -1,2 +0,2 @@ | ||
var each, map, compact, filter, reject, partition, find, head, first, tail, last, initial, empty, reverse, unique, fold, foldl, fold1, foldl1, foldr, foldr1, unfoldr, concat, concatMap, flatten, difference, intersection, union, countBy, groupBy, andList, orList, any, all, sort, sortWith, sortBy, sum, product, mean, average, maximum, minimum, scan, scanl, scan1, scanl1, scanr, scanr1, slice, take, drop, splitAt, takeWhile, dropWhile, span, breakList, zip, zipWith, zipAll, zipAllWith, slice$ = [].slice; | ||
var each, map, compact, filter, reject, partition, find, head, first, tail, last, initial, empty, reverse, unique, fold, foldl, fold1, foldl1, foldr, foldr1, unfoldr, concat, concatMap, flatten, difference, intersection, union, countBy, groupBy, andList, orList, any, all, sort, sortWith, sortBy, sum, product, mean, average, maximum, minimum, scan, scanl, scan1, scanl1, scanr, scanr1, slice, take, drop, splitAt, takeWhile, dropWhile, span, breakList, zip, zipWith, zipAll, zipAllWith, toString$ = {}.toString, slice$ = [].slice; | ||
each = curry$(function(f, xs){ | ||
@@ -159,3 +159,3 @@ var i$, len$, x; | ||
x = ref$[i$]; | ||
if (x.length != null) { | ||
if (toString$.call(x).slice(8, -1) === 'Array') { | ||
results$.push(flatten(x)); | ||
@@ -162,0 +162,0 @@ } else { |
{ | ||
"name": "prelude-ls", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "George Zahariev <z@georgezahariev.com>", | ||
@@ -5,0 +5,0 @@ "description": "prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.", |
28167