Observed since 20 Oct, 18:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
102f
A modern JS library based on 101
A modern functionnal programming library based on 101. (This library is still in developpment.)
Apply a function to an argument list.
Parameters
fn: function
args: array
Returns: any
Example:
let arr = [0, 1, 2, 3]
apply(Math.max, arr) // 3
Performs right-to-left function composition.
Parameters
f: function
g: function
Returns: function
Example:
var f = function(x){ return x * x}
var g = function(x){ return x + 2}
let composed = compose(f,g)
Returns a curried equivalent of the provided function.
Parameters
f: function
Returns: function
Example:
var multiplyFunction = function(x,y) { return x * y }
var curried = curry(f)
curried(2)(3) //6
Returns true if the parameter is empty.
Parameters
val: any
Returns: boolean
Example:
var val = '';
isEmpty(val) // true
Returns true if the argument is an Integer.
Parameters
val: any
Returns: boolean
Example:
var val = 15;
isInteger(val) // true
Returns true if the argument is a Number.
Parameters
val: any
Returns: boolean
Example:
var val = 15.3;
isNumber(val)
Parameters
f: function
array: Array
Returns: Array
Example:
var array = [0,1,2,3]
var result = map(x => x * 2, array) //[0,2,4,6]
Returns a new Functor.
Returns: Container
Returns the multiplication of two Numbers.
Parameters
a: Number
b: Number
Returns: Number
Example:
var a = 2
var b = 3
var result = multiply(a)(b) //6
Returns a new Container
Parameters
arg: any
Returns: Container
Example:
var Container1 = newContainer(2) //Container { _value: 2 }
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
babel-coreEnvironment{
"local_name": "babel-core",
"alias": false,
"peer_metadata": null
} | ^6.26.0 | runtime |
jsdocEnvironment{
"local_name": "jsdoc",
"alias": false,
"peer_metadata": null
} | ^3.5.5 | runtime |
babel-preset-es2015Environment{
"local_name": "babel-preset-es2015",
"alias": false,
"peer_metadata": null
} | ^6.24.1 | development |
chaiEnvironment{
"local_name": "chai",
"alias": false,
"peer_metadata": null
} | ^4.1.2 | development |
iEnvironment{
"local_name": "i",
"alias": false,
"peer_metadata": null
} | ^0.3.6 | development |
mochaEnvironment{
"local_name": "mocha",
"alias": false,
"peer_metadata": null
} | ^4.1.0 | development |
npmEnvironment{
"local_name": "npm",
"alias": false,
"peer_metadata": null
} | ^5.6.0 | development |
Source distribution
{
"shasum": "9478a663f94db705561756e1f8531724f2fae228",
"tarball": "https://registry.npmjs.org/102f/-/102f-1.0.0.tgz",
"integrity": "sha512-hln5lYUIjVQqYbdF/UAVZoyKijjDjhpc5PpEkycCZS8xDpBqwuwFPZlYtFkHWTU8Z5rj/YuWiJgkpCKy6SfO0Q==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIBpUC/T1aPWivqjPYW2gYsMvQzRjF0jncPtVjT6N5NJ1AiEArJvQKtgCf026qcdawiEVBfcnpH06vwxu4xt6r86u40A="
}
]
}Observed since 20 Oct, 18:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:6fcc6ad8053a97a255bdff3da42e2aefe4b7faeabbfca74dd9ecb806b3e57b80