JSPM

@queso/identity

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q21694F
  • License MIT

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

Package Exports

  • @queso/identity

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@queso/identity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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