prelude-extension
Advanced tools
Comparing version 0.0.8 to 0.0.9
16
index.js
@@ -0,3 +1,4 @@ | ||
// Generated by LiveScript 1.4.0 | ||
(function(){ | ||
var ref$, all, any, concatMap, each, filter, find, isType, keys, map, Obj, objToPairs, partition, reverse, sortBy, clamp, findAll, get, isEqualToObject, partitionString, mappend, rextend, set, transpose, unwrap, slice$ = [].slice, toString$ = {}.toString; | ||
var ref$, all, any, concatMap, each, filter, find, isType, keys, map, Obj, objToPairs, partition, reverse, sortBy, clamp, findAll, get, isEmptyObject, isEqualToObject, partitionString, mappend, rextend, set, transpose, unwrap, slice$ = [].slice, toString$ = {}.toString; | ||
ref$ = require('prelude-ls'), all = ref$.all, any = ref$.any, concatMap = ref$.concatMap, each = ref$.each, filter = ref$.filter, find = ref$.find, isType = ref$.isType, keys = ref$.keys, map = ref$.map, Obj = ref$.Obj, objToPairs = ref$.objToPairs, partition = ref$.partition, reverse = ref$.reverse, sortBy = ref$.sortBy; | ||
@@ -29,2 +30,14 @@ clamp = curry$(function(n, min, max){ | ||
}); | ||
isEmptyObject = function(o){ | ||
var numberOfKeys; | ||
numberOfKeys = function(it){ | ||
return it.length; | ||
}( | ||
keys( | ||
Obj.filter(function(it){ | ||
return !!it; | ||
})( | ||
o))); | ||
return numberOfKeys === 0; | ||
}; | ||
isEqualToObject = curry$(function(o1, o2){ | ||
@@ -169,2 +182,3 @@ if (toString$.call(o1).slice(8, -1) !== toString$.call(o2).slice(8, -1)) { | ||
get: get, | ||
isEmptyObject: isEmptyObject, | ||
isEqualToObject: isEqualToObject, | ||
@@ -171,0 +185,0 @@ mappend: mappend, |
{ | ||
"name": "prelude-extension", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "prelude-extension", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,2 +17,4 @@ Prelude Extension | ||
`is-empty-object :: object -> Boolean` | ||
`is-equal-to-object :: a -> b -> Boolean` | ||
@@ -19,0 +21,0 @@ |
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
8024
209
36