import { Deep } from "https://deno.land/x/rimbu@1.1.0/deep/mod.ts";
const { getAtWith } = Deep;
Returns a function that gets the value at the given string path
inside an object.
Examples
Example 1
Example 1
const items = [{ a: { b: 1, c: 'a' } }, { a: { b: 2, c: 'b' } }];
items.map(Deep.getAtWith('a.c'));
// => ['a', 'b']
Type Parameters
P extends Path.Get<T>
Parameters
path: P
- the string path in the object