Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

scourjs

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scourjs - npm Package Compare versions

Comparing version
0.10.0
to
0.11.0
+7
-0
HISTORY.md
# Changelog
## [v0.11.0]
> Jan 1, 2016
- Implement `scour#equal()`.
## [v0.10.0]

@@ -98,1 +103,3 @@ > Jan 1, 2016

[v0.9.3]: https://github.com/rstacruz/scour/compare/v0.9.1...v0.9.3
[v0.10.0]: https://github.com/rstacruz/scour/compare/v0.9.3...v0.10.0
[v0.11.0]: https://github.com/rstacruz/scour/compare/v0.10.0...v0.11.0

@@ -681,2 +681,15 @@ /* eslint-disable new-cap */

},
/**
* Checks for equality between two Scour-wrapped objects.
*
* a = scour(data)
* b = scour(data)
*
* a.equal(b) // => true
*/
equal: function equal(other) {
return this.value === other.value && this.keypath.join('.') === other.keypath.join('.');
},
toString: function toString() {

@@ -683,0 +696,0 @@ return '[scour (' + this.keys().join(', ') + ')]';

+1
-1
{
"name": "scourjs",
"description": "Traverse objects and arrays",
"version": "0.10.0",
"version": "0.11.0",
"author": "Rico Sta. Cruz <rico@ricostacruz.com>",

@@ -6,0 +6,0 @@ "babel": {

@@ -728,2 +728,15 @@ # scour.js

### equal
> `equal(other)`
Checks for equality between two Scour-wrapped objects.
```js
a = scour(data)
b = scour(data)
a.equal(b) // => true
```
## Iteration methods

@@ -730,0 +743,0 @@