1.0.3 • Published 7 years ago

funny-identity v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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.