npm install sicsic is a JavaScript function for wrapping a value in a function (equivalent to the K combinator).
  

  
It's trivial to implement, but in order to keep code DRY (and avoid silly mistakes) it makes sense to define this function only once per project. This library is the logical consequence of that.
``sh`
npm install sic
`sh`
git clone https://github.com/pluma/sic.git
cd sic
npm install
make
`sh`
component install pluma/sic
`sh`
bower install sic
Download the latest minified CommonJS release and add it to your project.
Learn more about CommonJS modules.
Download the latest minified AMD release and add it to your project.
Download the latest minified standalone release and add it to your project.
`html`
This makes the sic function available in the global namespace.
`javascript
var sic = require('sic');
var fn = sic('hello');
console.log(fn()); // 'hello'
``
Wraps the given value in a function.
This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.