A Chrome extension that adds the grep method to the object prototype. Based on object-grep tool.
Сlone to your machine:
git clone https://github.com/ulitcos/object-grep-chrome-extension.git
Install extension into chrome (source):
- Open the Extension Management page by navigating to chrome://extensions.
- Enable Developer Mode by clicking the toggle switch next to Developer mode.
- Click the LOAD UNPACKED button and select the extension directory.
The grep method will be embedded in object.prototype
, so you can call it on any object
const obj = {a: {b: {c: 'd'}}}
obj.grep('b') // => {inKeys: {'a.b': {c: 'd'}}, inValues: {}}