- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
12 lines
360 B
JavaScript
12 lines
360 B
JavaScript
import deepGet from './_deepGet.js';
|
||
import toPath from './_toPath.js';
|
||
|
||
// Creates a function that, when passed an object, will traverse that object’s
|
||
// properties down the given `path`, specified as an array of keys or indices.
|
||
export default function property(path) {
|
||
path = toPath(path);
|
||
return function(obj) {
|
||
return deepGet(obj, path);
|
||
};
|
||
}
|