magic-method
v1.0.0
Published
call object method with procedural like style
Downloads
2
Readme
Call object method with procedural like style.
let magic = require("magic-method");
console.log(magic.replace("azerty", "a","A"));// 'Azerty'
console.log(magic.length("hello word"));// 10
console.log(magic.trim(" javascript is awesome "));// 'javascript is awesome'
console.log(magic.normalize("???", "NFD"));// '???'
console.log(magic.slice([1, 2, 3, 4, 5], 2, 4));// [ 3, 4 ]