0.0.3 • Published 4 years ago

beformat v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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)
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago