Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

array-asyncify

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-asyncify - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

16

index.js

@@ -42,3 +42,10 @@ const util = require("util")

}
asyncArr.every = async function every(callback, thisArg) {
for (let i = 0; i < array.length; i++) {
if (!await callback.call(thisArg, array[i], i, array)) {
return false
}
}
return true
}
return asyncArr

@@ -84,2 +91,9 @@ }

}
every(predict) {
this.actions_.push({
method: "every",
params: [predict]
})
return this
}
async apply() {

@@ -86,0 +100,0 @@ let array = this.array_;

2

package.json
{
"name": "array-asyncify",
"version": "0.0.5",
"version": "0.0.6",
"description": "Async array functions",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,3 +22,3 @@ ## Issue

const { asyncify } = require("array-asyncify")
let delay = (t) => new Promise(res => setTimeout(res), t)
let delay = (t) => new Promise(res => setTimeout(res,t))
console.log("Example:");

@@ -25,0 +25,0 @@ (async () => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc