return-this
1.0.2 • Public • Published return-this
A function that simply returns this
. Useful as a chainable noop stub.
Installation
Usage
var returnThis = require('return-this')
var x = new Animal()
animal.foo = returnThis
animal.bar = returnThis
animal.foo().bar()
License
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.2
0
Version History
Package Sidebar
Install
Weekly Downloads