Skip to content

A Chrome extension that adds the grep method to the object prototype

License

Notifications You must be signed in to change notification settings

ulitcos/object-grep-chrome-extension

Repository files navigation

object-grep-chrome-extension

A Chrome extension that adds the grep method to the object prototype. Based on object-grep tool.

install

С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.

usage

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: {}}

More examples here and here

About

A Chrome extension that adds the grep method to the object prototype

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published