node-powertools
Advanced tools
Comparing version 0.0.15 to 0.0.16
{ | ||
"name": "node-powertools", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Powerful assistive functions for Node and Browser environments.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -144,2 +144,17 @@ <p align="center"> | ||
### powertools.getKeys(obj) | ||
Walk through any `obj` and get an array of every key, including nested keys. | ||
```js | ||
powertools.getKeys({}); // Output: [] | ||
powertools.getKeys({name: 'Jon Snow'}); // Output: ['name'] | ||
powertools.getKeys({name: 'Jon Snow', favorites: {color: 'red'}}); // Output: ['name', 'favorites.color'] | ||
``` | ||
### powertools.isObject(obj) | ||
Check if `obj` is a good ol... object. In JavaScript, `null` is, unfortunately, considered an object. | ||
```js | ||
powertools.isObject({}); // Output: true | ||
powertools.isObject(null); // Output: false | ||
``` | ||
## Final Words | ||
@@ -146,0 +161,0 @@ If you are still having difficulty, we would love for you to post a question to [the Node Powertools issues page](https://github.com/itw-creative-works/node-powertools/issues). It is much easier to answer questions that include your code and relevant files! So if you can provide them, we'd be extremely grateful (and more likely to help you find the answer!) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34436
171