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