Socket
Socket
Sign inDemoInstall

is-generator

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

2

is-generator.js

@@ -8,3 +8,3 @@ /**

exports = module.exports = function (obj) {
return typeof obj === 'function' &&
return obj &&
typeof obj.next === 'function' &&

@@ -11,0 +11,0 @@ typeof obj.throw === 'function';

{
"name": "is-generator",
"version": "0.0.3",
"version": "0.0.4",
"description": "Check whether a value is a generator or generator function",

@@ -5,0 +5,0 @@ "main": "is-generator.js",

@@ -17,3 +17,3 @@ /* global describe, it */

it('should return true with a generator', function () {
assert(!isGenerator((function* () {})()));
assert(isGenerator((function* () {})()));
});

@@ -20,0 +20,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc