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
Dependencies (0)
Dev Dependencies (3)
Package Sidebar
Install
Weekly Downloads