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

graphology-utils

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-utils - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

is-graph-constructor.js

5

package.json
{
"name": "graphology-utils",
"version": "1.1.0",
"version": "1.1.1",
"description": "Miscellaneous utils for graphology.",

@@ -8,3 +8,4 @@ "main": "index.js",

"index.js",
"is-graph.js"
"is-graph.js",
"is-graph-constructor.js"
],

@@ -11,0 +12,0 @@ "scripts": {

@@ -34,1 +34,21 @@ # Graphology Utils

```
### #.isGraphConstructor
Function returning whether the given value is a `graphology` constructor.
```js
import Graph from 'graphology';
import {isGraphConstructor} from 'graphology-utils';
// Alternatively, if you want to only load the relevant code:
import isGraphConstructor from 'graphology-utils/is-graph-constructor';
isGraphConstructor(Graph);
>>> true
isGraphConstructor(45);
>>> false
isGraphConstructor(new Graph());
>>> 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