machinepack-arrays
Advanced tools
Comparing version 5.0.2 to 5.1.0
@@ -30,2 +30,6 @@ module.exports = { | ||
emptyArray: { | ||
description: 'The provided array has no items.' | ||
}, | ||
success: { | ||
@@ -43,2 +47,5 @@ friendlyName: 'then', | ||
var _ = require('lodash'); | ||
if (inputs.array) { | ||
return exits.emptyArray(); | ||
} | ||
return exits.success(_.sample(inputs.array)); | ||
@@ -45,0 +52,0 @@ } |
{ | ||
"name": "machinepack-arrays", | ||
"version": "5.0.2", | ||
"version": "5.1.0", | ||
"description": "Work with arrays.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
68665
2696