Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fairmont-helpers

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fairmont-helpers - npm Package Compare versions

Comparing version 1.0.0-beta-24 to 1.0.0-beta-25

26

lib/type.js
// 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc