0.0.3 • Published 4 years ago
beformat v0.0.3
Install
npm i beformat
or
yarn add beformat
Example
import beformat from 'beformat'
const obj = {a:{b:{c:{d:{e:{f:'done'}}}}}};
// get the data if structure is right or return custom data when wrong
const exp = 'a.b.c.d'
const customBack = 'undefined'
beformat(obj, exp, customBack)