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

@ndhoule/keys

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndhoule/keys - npm Package Compare versions

Comparing version 1.1.1 to 2.0.0

.npmignore

4

HISTORY.md

@@ -0,1 +1,5 @@

## 2.0.0
- Remove Component/Duo support
## 1.1.1

@@ -2,0 +6,0 @@

38

index.js
'use strict';
/**
* charAt reference.
*/
var hop = Object.prototype.hasOwnProperty;
var strCharAt = String.prototype.charAt;
var toStr = Object.prototype.toString;

@@ -16,3 +14,2 @@ /**

*/
// TODO: Move to a library

@@ -24,14 +21,2 @@ var charAt = function(str, index) {

/**
* hasOwnProperty reference.
*/
var hop = Object.prototype.hasOwnProperty;
/**
* Object.prototype.toString reference.
*/
var toStr = Object.prototype.toString;
/**
* hasOwnProperty, wrapped as a function.

@@ -75,3 +60,2 @@ *

*/
// TODO: Move to a library

@@ -89,8 +73,8 @@ var isArrayLike = function isArrayLike(val) {

* @param {} target
* @param {} pred
* @param {Function} pred
* @return {Array}
*/
var indexKeys = function indexKeys(target, pred) {
pred = pred || has;
var results = [];

@@ -108,3 +92,3 @@

/**
* Returns an array of all the owned
* Returns an array of an object's owned keys.
*

@@ -118,8 +102,7 @@ * @name objectKeys

*/
var objectKeys = function objectKeys(target, pred) {
pred = pred || has;
var results = [];
for (var key in target) {

@@ -166,4 +149,3 @@ if (pred(target, key)) {

*/
module.exports = function keys(source) {
var keys = function keys(source) {
if (source == null) {

@@ -185,1 +167,7 @@ return [];

};
/*
* Exports.
*/
module.exports = keys;
{
"name": "@ndhoule/keys",
"version": "1.1.1",
"version": "2.0.0",
"description": "Create an array of the owned/enumerable keys of an input object.",

@@ -5,0 +5,0 @@ "main": "index.js",

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