1.0.0 • Published 4 years ago

value-find v1.0.0

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

value-find

npm i -s value-find
# or
yarn add value-find
import valueFind from "value-find";

var data = {
  example: {
    key: [
      {
        value: 1
      },
      {
        value: "hello world"
      },
      {
        value: [1, 2, 3, 4]
      }
    ]
  }
};

var test = valueFind(data, 'example.key[].value'); // console: [1, "hello world", [1,2,3,4]]