jsonasarray
Advanced tools
+1
-1
| { | ||
| "name": "jsonasarray", | ||
| "version": "0.0.5", | ||
| "version": "0.0.6", | ||
| "description": "use Json as Array", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,4 @@ | ||
| export default function (scope, callback) { | ||
| import { noop } from '../preset'; | ||
| export default function (scope, callback = noop) { | ||
| const set = {}; | ||
@@ -3,0 +5,0 @@ |
@@ -1,2 +0,4 @@ | ||
| export default function (scope, callback) { | ||
| import { noop } from '../preset'; | ||
| export default function (scope, callback = noop) { | ||
| for (const [key, value] of Object.entries(scope)) { | ||
@@ -3,0 +5,0 @@ callback(value, key, scope); |
+3
-1
@@ -1,2 +0,4 @@ | ||
| export default function (scope, callback) { | ||
| import { noop } from '../preset'; | ||
| export default function (scope, callback = noop) { | ||
| const set = {}; | ||
@@ -3,0 +5,0 @@ |
+3
-1
@@ -1,2 +0,4 @@ | ||
| export default function (scope, callback) { | ||
| import { noop } from '../preset'; | ||
| export default function (scope, callback = noop) { | ||
| const set = []; | ||
@@ -3,0 +5,0 @@ |
9600
1.78%238
1.71%