Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

102f

A modern JS library based on 101

Published31 Jan 2018
Direct dependencies7
Transitive dependenciesNot calculated

README

Current package documentation

102

Build Status

A modern functionnal programming library based on 101. (This library is still in developpment.)

apply


apply.apply(fn, args)

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

compose


compose.compose(f, g)

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)

curry


curry.curry(f)

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

isEmpty


isEmpty.isEmpty(val)

Returns true if the parameter is empty.

Parameters

val: any

Returns: boolean

Example:

var val = '';
isEmpty(val) // true

isInteger


isInteger.isInteger(val)

Returns true if the argument is an Integer.

Parameters

val: any

Returns: boolean

Example:

var val = 15;
isInteger(val) // true

isNumber


isNumber.isNumber(val)

Returns true if the argument is a Number.

Parameters

val: any

Returns: boolean

Example:

var val = 15.3;
isNumber(val)

map


map.map(f, array)

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]

mapFunctor


mapFunctor.mapFunctor()

Returns a new Functor.

Returns: Container


multiply


multiply.multiply(a, b)

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

newContainer


newContainer.newContainer(arg)

Returns a new Container

Parameters

arg: any

Returns: Container

Example:

var Container1 = newContainer(2) //Container { _value: 2 }

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
babel-core
Environment
{
  "local_name": "babel-core",
  "alias": false,
  "peer_metadata": null
}
^6.26.0runtime
jsdoc
Environment
{
  "local_name": "jsdoc",
  "alias": false,
  "peer_metadata": null
}
^3.5.5runtime
babel-preset-es2015
Environment
{
  "local_name": "babel-preset-es2015",
  "alias": false,
  "peer_metadata": null
}
^6.24.1development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
i
Environment
{
  "local_name": "i",
  "alias": false,
  "peer_metadata": null
}
^0.3.6development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^4.1.0development
npm
Environment
{
  "local_name": "npm",
  "alias": false,
  "peer_metadata": null
}
^5.6.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "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="
    }
  ]
}

Repository

PENDING
ayshiff/102

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:00 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:6fcc6ad8053a97a255bdff3da42e2aefe4b7faeabbfca74dd9ecb806b3e57b80

Other collected versions

1.0.131 JanView all collected versions →