Socket
Socket
Sign inDemoInstall

utile

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utile - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

LICENSE

18

lib/index.js

@@ -132,5 +132,21 @@ /*

//
// ### function filter (object, test)
// #### @obj {Object} Object to iterate over
// #### @test {function} test applied to each property. `function (value, key, object)`
// filters the properties that `test` returns true on.
//
exports.filter = function (obj, test) {
var n = Array.isArray(obj) ? [] : {}
exports.each(obj, function (v, k) {
if(test(v, k, obj))
n[k] = v
})
return n
}
//
// Extend the `utile` object with all methods from the
// core node `util` methods
//
utile.mixin(utile, require('util'));
utile.mixin(utile, require('util'));

5

package.json
{
"name": "utile",
"description": "A drop-in replacement for `util` with some additional advantageous functions",
"version": "0.0.3",
"version": "0.0.4",
"author": "Nodejitsu Inc <info@nodejitsu.com>",
"contributors": [
{ "name": "Charlie Robbins", "email": "charlie@nodejitsu.com" }
{ "name": "Charlie Robbins", "email": "charlie@nodejitsu.com" },
{ "name": "Dominic Tarr", "email": "dominic@nodejitsu.com" }
],

@@ -9,0 +10,0 @@ "repository": {

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