New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

moment-range

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-range - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

package.json

@@ -24,3 +24,3 @@ {

},
"version": "1.0.7",
"version": "1.0.8",
"engines": {

@@ -27,0 +27,0 @@ "node": "*"

@@ -43,3 +43,11 @@ moment-range

```
A optional second parameter indicates if the end of the range
should be excluded when testing for inclusion
``` javascript
range.contains(end) // true
range.contains(end, false) // true
range.contains(end, true) // false
```
Find out if your moment falls within a date range:

@@ -114,2 +122,13 @@

Iteration also supports excluding the end value of the range by setting the
last parameter to ```true```.
``` javascript
acc2 = [];
range1.by('d', function (moment) {
acc2.push(moment)
}, true);
acc2.length == 4 // true
```
### Compare

@@ -116,0 +135,0 @@

Sorry, the diff of this file is not supported yet

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