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

object-loops

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-loops - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

test/fixtures/all-method-names.js

7

chain.js

@@ -33,7 +33,12 @@ /**

[
'every',
'inverse',
'filter',
'findKey',
'find',
'forEach',
'mapKeys',
'map',
'reduce'
'reduce',
'some'
].forEach(function (methodName) {

@@ -40,0 +45,0 @@ var filename = dasherize(methodName)

5

package.json
{
"name": "object-loops",
"version": "0.7.0",
"version": "0.7.1",
"description": "Functional methods like forEach, map, filter, and other Array methods for Objects in javascript",

@@ -42,6 +42,7 @@ "main": "index.js",

"dependencies": {
"101": "^1.2.0",
"101": "^1.6.1",
"dasherize": "^2.0.0"
},
"devDependencies": {
"camelize": "^1.0.0",
"code": "^1.5.0",

@@ -48,0 +49,0 @@ "lab": "^6.2.0",

@@ -11,2 +11,3 @@ var Code = require('code')

var allMethodNames = require('./fixtures/all-method-names.js')
var chain = require('../chain')

@@ -30,2 +31,9 @@

})
it('should have all methods', function (done) {
var chainable = chain({})
allMethodNames.forEach(function (name) {
expect(chainable[name]).to.be.a.function()
})
done()
})
describe('errors', function () {

@@ -32,0 +40,0 @@ it('should error if invoked w/ non-object', function (done) {

@@ -13,2 +13,4 @@ var Code = require('code')

var allMethodNames = require('./fixtures/all-method-names.js')
describe('index', function () {

@@ -21,2 +23,8 @@ describe('all methods', function () {

after(require('./fixtures/reset-object-prototype'))
it('should have all methods', function (done) {
allMethodNames.forEach(function (name) {
expect(Object[name]).to.be.a.function()
})
done()
})
it('should iterate through all the key-value pairs in the object', function (done) {

@@ -23,0 +31,0 @@ var obj = {

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