cball
v1.0.2
Published
Apply a callback function recursively to all values in an Array, Object, String or Number.
Downloads
13
Maintainers
Readme
About
Apply a callback function recursively to all values in an Array, Object, String or Number.
const cba = require('cball')
let ob = { a: "1", b: { c: 3, d: "4" } };
ob = cba(ob, (v) => Number(v)); // { a: 1, b: { c: 3, d: 4 } }