just-entries
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -17,3 +17,3 @@ module.exports = entries; | ||
function entries(obj) { | ||
if (typeof obj != 'object' && typeof obj != 'function' || obj == null) { | ||
if ((typeof obj != 'object' && typeof obj != 'function') || obj == null) { | ||
throw new Error('argument to `entries` must be an object'); | ||
@@ -20,0 +20,0 @@ } |
{ | ||
"name": "just-entries", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "return object entries as an array of [key, value] pairs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,3 +9,3 @@ ## just-entries | ||
```js | ||
const entries = require('just-entries'); | ||
import entries from 'just-entries'; | ||
@@ -12,0 +12,0 @@ // Object: |
2890
4