dot-prop-wild

0.3.0 • Public • Published

Dot-prop-wild

Get value from object or array using dot path and wildcard.

Installation

npm install dot-prop-wild
# or 
yarn add dot-prop-wild

Usage

This library is written using ES6, in order to use it in your project it is advised to transpile it to your environment. The easiest way to do this is by using Babel with @babel/preset-env.

import get from 'dot-prop-wild'
 
const data = [null, 1, [{ name: 'Sam' }]]
 
get(data, '*.*.name')

License

MIT

/dot-prop-wild/

    Package Sidebar

    Install

    npm i dot-prop-wild

    Weekly Downloads

    21

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    6.69 kB

    Total Files

    4

    Last publish

    Collaborators

    • shcherbin