@queso/identity
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@queso/identity

npm license Travis Build Status codecov Try @queso/identity on RunKit

Part of a library of zero-dependency npm modules that do just one thing.

npm

min + gzip | 62 bytes

source

Returns the first argument it receives and ignores any additional arguments.

Usage

import identity from '@queso/identity'

const object = { a: 1 }
identity(object) === object
// => true

Parameters

Name Type Description
value T Any value.
_args any[]

Type parameters

Name
T

Returns

The first argument it receives.

Return type

T

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @queso/identity

      Weekly Downloads

      3

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      7.35 kB

      Total Files

      8

      Last publish

      Collaborators

      • jedmao