Sha256: 9184dc83a84c652da1c592b3245509521171c9d4c52c6c5edbc5544dc0527a42

Contents?: true

Size: 269 Bytes

Versions: 43

Compression:

Stored size: 269 Bytes

Contents

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

Version data entries

43 entries across 29 versions & 11 rubygems

Version Path
locomotivecms-3.4.0 app/javascript/node_modules/webpack-cli/node_modules/yargs/lib/obj-filter.js
dragonfly_puppeteer-0.1.0 node_modules/webpack-cli/node_modules/yargs/lib/obj-filter.js
dragonfly_puppeteer-0.1.0 node_modules/yargs/lib/obj-filter.js