Skip to content

Commit

Permalink
keys, keysIn, values, valuesIn to chain and proto
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmehta committed Aug 21, 2016
1 parent 24b51e0 commit 41c17b4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
6 changes: 5 additions & 1 deletion chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ function extendChainPrototype (hideWarnings) {
'findKey',
'find',
'forEach',
'keys',
'keysIn',
'mapKeys',
'map',
'reduce',
'some'
'some',
'values',
'valuesIn'
].forEach(function (methodName) {
var filename = dasherize(methodName)
var filepath = path.join(__dirname, filename)
Expand Down
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ function extendObjectPrototype (hideWarnings) {
'findKey',
'find',
'forEach',
'keys',
'keysIn',
'mapKeys',
'map',
'reduce',
'some'
'some',
'values',
'valuesIn'
].forEach(function (methodName) {
var filename = dasherize(methodName)
var filepath = path.join(__dirname, filename)
Expand Down
13 changes: 1 addition & 12 deletions test/fixtures/reset-object-prototype.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
var methodNames = [
'every',
'inverse',
'filter',
'find',
'findKey',
'forEach',
'map',
'mapKeys',
'reduce',
'some'
]
var methodNames = require('./all-method-names.js')

module.exports = resetObjectPrototype

Expand Down

0 comments on commit 41c17b4

Please sign in to comment.