JSPM

dot-prop-wild

0.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q38471F
  • License MIT

Get value from object or array using dot path and wildcard

Package Exports

  • dot-prop-wild

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dot-prop-wild) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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