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

function-overloader

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

function-overloader - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"name": "function-overloader",
"version": "1.3.0",
"version": "1.3.1",
"description": "improve overloading functions and methods in js",

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

@@ -140,3 +140,3 @@ # FUNCTION OVERLOADER

```javascript
.when()
<Overload Instance>.when()
```

@@ -160,5 +160,11 @@

if there is no arguments it means that it will resolve only when overloaded function doesn't get any arguments.
```javascript
.done()
<Overload Instance>.else()
```
Accept callback function. Will invoke it when other criteria are not met.
```javascript
<Overload Instance>.done()
```
should be called at the end to mark that now we should get chosen function response

@@ -165,0 +171,0 @@

Sorry, the diff of this file is not supported yet

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