Sha256: fffdd4c7cc6992834995b68b35d67329c7875d444296b7a53c00cdfb580529b4

Contents?: true

Size: 267 Bytes

Versions: 44

Compression:

Stored size: 267 Bytes

Contents

module.exports = function (original, filter) {
  const obj = {}
  filter = filter || function (k, v) { return true }
  Object.keys(original || {}).forEach(function (key) {
    if (filter(key, original[key])) {
      obj[key] = original[key]
    }
  })
  return obj
}

Version data entries

44 entries across 25 versions & 10 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/sass-graph/node_modules/yargs/lib/obj-filter.js
disco_app-0.18.0 test/dummy/node_modules/sass-graph/node_modules/yargs/lib/obj-filter.js
disco_app-0.18.2 test/dummy/node_modules/sass-graph/node_modules/yargs/lib/obj-filter.js
enju_library-0.3.8 spec/dummy/node_modules/sass-graph/node_modules/yargs/lib/obj-filter.js
ilog-0.4.1 node_modules/webpack/node_modules/yargs/lib/obj-filter.js
ilog-0.4.1 node_modules/webpack-dev-server/node_modules/yargs/lib/obj-filter.js
ilog-0.4.1 node_modules/browser-sync/node_modules/yargs/lib/obj-filter.js
ilog-0.4.1 node_modules/localtunnel/node_modules/yargs/lib/obj-filter.js
ilog-0.4.1 node_modules/sass-graph/node_modules/yargs/lib/obj-filter.js
ilog-0.4.0 node_modules/webpack/node_modules/yargs/lib/obj-filter.js
ilog-0.4.0 node_modules/webpack-dev-server/node_modules/yargs/lib/obj-filter.js
ilog-0.4.0 node_modules/browser-sync/node_modules/yargs/lib/obj-filter.js
ilog-0.4.0 node_modules/sass-graph/node_modules/yargs/lib/obj-filter.js
ilog-0.4.0 node_modules/localtunnel/node_modules/yargs/lib/obj-filter.js
ilog-0.3.3 node_modules/webpack-dev-server/node_modules/yargs/lib/obj-filter.js
ilog-0.3.3 node_modules/browser-sync/node_modules/yargs/lib/obj-filter.js
ilog-0.3.3 node_modules/sass-graph/node_modules/yargs/lib/obj-filter.js
ilog-0.3.3 node_modules/webpack/node_modules/yargs/lib/obj-filter.js
ilog-0.3.3 node_modules/localtunnel/node_modules/yargs/lib/obj-filter.js
jester-data-8.0.0 node_modules/sass-graph/node_modules/yargs/lib/obj-filter.js