npm.io
1.0.3 • Published 9 years ago

funny-identity

Licence
MIT
Version
1.0.3
Deps
0
Vulns
0
Weekly
0
Stars
5

identity

Simple modules for functional programming, done for fun.

Usage

import identity from 'funny-identity'

identity(null)      // null
identity(true)      // true
identity(0)         // 0
identity('test')    // 'test'
identity([1, 2, 3]) // [1, 2, 3]
identity({ a: 1 })  // { a: 1 }
identity(i => i)    // i => i

License

The MIT License (MIT). Copyright (c) 2016 Luís Rodrigues.

Keywords