@kingjs/func.return-this

1.0.0 • Public • Published

@kingjs/func.return-this

A function that returns this.

Usage

Return this like this:

var returnThis = require('@kingjs/func.return-this');

returnThis.call('Hello World!');

result:

'Hello World!'

API

declare function returnThis(
  this: any
): any

Parameters

  • this: Any value.

Returns

Returns this.

Remarks

If this is a primitive value, then returnThis will return a boxed version of the primitive value.

Install

With npm installed, run

$ npm install @kingjs/func.return-this

License

MIT

Analytics

Readme

Keywords

none

Package Sidebar

Install

npm i @kingjs/func.return-this

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.31 kB

Total Files

4

Last publish

Collaborators

  • kingces95