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

iskindof

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iskindof - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0

.travis.yml

4

index.js

@@ -19,3 +19,5 @@ /*

'Undefined',
'Arguments'
'Arguments',
'AsyncFunction',
'Promise'
]

@@ -22,0 +24,0 @@

{
"name": "iskindof",
"version": "0.0.2",
"version": "1.0.0",
"description": "iskindof type in JavaScript",

@@ -26,3 +26,6 @@ "main": "index.js",

"tape": "^4.2.2"
},
"engines" : {
"node" : ">=8.0.0"
}
}

@@ -150,1 +150,36 @@ /*

})
test('KindOf AsyncFunction', (t) => {
t.plan(11)
t.equal(_.isAsyncFunction(async () =>{}), true)
t.equal(_.isAsyncFunction(new Date()), false)
t.equal(_.isAsyncFunction({}), false)
t.equal(_.isAsyncFunction(null), false)
t.equal(_.isAsyncFunction([]), false)
t.equal(_.isAsyncFunction(1), false)
t.equal(_.isAsyncFunction(undefined), false)
t.equal(_.isAsyncFunction(noop), false)
t.equal(_.isAsyncFunction('string'), false)
t.equal(_.isAsyncFunction(NaN), false)
t.equal(_.isAsyncFunction(), false)
})
test('KindOf Promise', (t) => {
t.plan(12)
t.equal(_.isPromise(new Promise(() =>{})), true)
t.equal(_.isPromise(async () =>{}), false)
t.equal(_.isPromise(new Date()), false)
t.equal(_.isPromise({}), false)
t.equal(_.isPromise(null), false)
t.equal(_.isPromise([]), false)
t.equal(_.isPromise(1), false)
t.equal(_.isPromise(undefined), false)
t.equal(_.isPromise(noop), false)
t.equal(_.isPromise('string'), false)
t.equal(_.isPromise(NaN), false)
t.equal(_.isPromise(), false)
})
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