fairmont-helpers
Advanced tools
Comparing version 1.0.0-beta-24 to 1.0.0-beta-25
// Generated by CoffeeScript 1.9.3 | ||
(function() { | ||
var GeneratorFunction, Type, curry, instanceOf, isArray, isBoolean, isDate, isDefined, isError, isFinite, isFloat, isFunction, isGenerator, isInteger, isMember, isNaN, isNumber, isObject, isPromise, isRegExp, isString, isType, prototype; | ||
var GeneratorFunction, Type, curry, instanceOf, isArray, isBoolean, isDate, isDefined, isError, isFinite, isFloat, isFunction, isGenerator, isInteger, isKind, isNaN, isNumber, isObject, isPromise, isPrototype, isRegExp, isString, isTransitivePrototype, isType, prototype; | ||
@@ -13,10 +13,18 @@ curry = require("fairmont-core").curry; | ||
isPrototype = curry(function(p, value) { | ||
return (p != null) && (value != null) && p === prototype(value); | ||
}); | ||
isType = curry(function(type, value) { | ||
return (type != null ? type.prototype : void 0) === prototype(value); | ||
return isPrototype(type != null ? type.prototype : void 0, value); | ||
}); | ||
isMember = curry(function(type, value) { | ||
return (value != null) && ((isType(type, value)) || (isMember(type, prototype(value)))); | ||
isTransitivePrototype = curry(function(p, value) { | ||
return (isPrototype(p, value)) || (isPrototype(p, prototype(value))); | ||
}); | ||
isKind = curry(function(type, value) { | ||
return isTransitivePrototype(type != null ? type.prototype : void 0, value); | ||
}); | ||
isNumber = isType(Number); | ||
@@ -90,4 +98,8 @@ | ||
prototype: prototype, | ||
isPrototype: isPrototype, | ||
isTransitivePrototype: isTransitivePrototype, | ||
isType: isType, | ||
isMember: isMember, | ||
isKind: isKind, | ||
Type: Type, | ||
instanceOf: instanceOf, | ||
isBoolean: isBoolean, | ||
@@ -107,7 +119,5 @@ isNumber: isNumber, | ||
isGenerator: isGenerator, | ||
isPromise: isPromise, | ||
instanceOf: instanceOf, | ||
Type: Type | ||
isPromise: isPromise | ||
}; | ||
}).call(this); |
{ | ||
"name": "fairmont-helpers", | ||
"version": "1.0.0-beta-24", | ||
"version": "1.0.0-beta-25", | ||
"description": "True functional reactive programming for JavaScript.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
31593
731