@f/identity

The identity function.

Usage no npm install needed!

<script type="module">
  import fIdentity from 'https://cdn.skypack.dev/@f/identity';
</script>

README

identity

Build status Git tag NPM version Code style

The identity function.

Installation

$ npm install @f/identity

Usage

var identity = require('@f/identity')

identity(1) // => 1
identity({}) // => {}

API

identity(val)

  • val - any value

Returns: val

License

MIT