kc-strnest
v1.0.2
Published
[js] Nest strings into callbacks.
Downloads
3
Readme
STRNest
[js] Nest strings into callbacks.
What
Pass a string into a callback. Each time the function is nested, the new string is concatenated. When function returns the previous string is restored.
Install
npm install kc-strnest
Use
var strnest = require('kc-strnest');
strnest('#str1', function(x){
strnest('.str2', function(x, o){
console.log(x);
}); console.log(x);
});