Comparing version 0.4.0 to 0.4.1
@@ -148,12 +148,2 @@ (function(root, factory) { | ||
fn.is = function (value, type) { | ||
// If the value is null or undefined, return the stringified name, | ||
// otherwise get the [[Class]] and compare to the relevant part of the value: | ||
var valueType = value == null ? | ||
'' + value : | ||
({}).toString.call(value).slice(8, -1).toLowerCase(); | ||
return type === valueType; | ||
}; | ||
fn.prop = fn.curry(function (name, object) { | ||
@@ -160,0 +150,0 @@ return object[name]; |
{ | ||
"name": "fn.js", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Functional programming strategy library for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "build/fn.js", |
@@ -137,14 +137,4 @@ 'use strict'; | ||
fn.is = function (value, type) { | ||
// If the value is null or undefined, return the stringified name, | ||
// otherwise get the [[Class]] and compare to the relevant part of the value: | ||
var valueType = value == null ? | ||
'' + value : | ||
({}).toString.call(value).slice(8, -1).toLowerCase(); | ||
return type === valueType; | ||
}; | ||
fn.prop = fn.curry(function (name, object) { | ||
return object[name]; | ||
}); |
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
36604
749