Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsprim

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsprim - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

9

lib/jsprim.js

@@ -15,2 +15,3 @@ /*

exports.deepCopy = deepCopy;
exports.isEmpty = isEmpty;
exports.forEachKey = forEachKey;

@@ -64,2 +65,10 @@ exports.validateJsonObject = validateJsonObject;

function isEmpty(obj)
{
var key;
for (key in obj)
return (false);
return (true);
}
function forEachKey(obj, callback)

@@ -66,0 +75,0 @@ {

2

package.json
{
"name": "jsprim",
"version": "0.0.3",
"version": "0.0.4",
"description": "utilities for primitive JavaScript types",

@@ -5,0 +5,0 @@ "main": "./lib/jsprim.js",

@@ -12,2 +12,8 @@ # jsprim: utilities for primitive JavaScript types

### isEmpty(obj)
Returns true if the given object has no properties and false otherwise. This
is O(1) (unlike `Object.keys(obj).length === 0`, which is O(N)).
### forEachKey(obj, callback)

@@ -14,0 +20,0 @@

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