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

@ctx-core/object

Package Overview
Dependencies
Maintainers
1
Versions
666
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ctx-core/object - npm Package Compare versions

Comparing version 5.0.4 to 5.1.0

15

lib.js

@@ -55,2 +55,17 @@ import { _andand } from '@ctx-core/function'

/**
* If a key is given, returns boolean of whether or not the given key is a member of the obj.
* If no key is given, returns a boolean of whether or not the obj has any key.
* @param {*}obj
* @param {string=}key
* @returns {boolean}
*/
export function _has__key(obj, key) {
const keys__ = keys(obj)
return(
key
? keys__.indexOf(key) > -1
: !!keys__.length
)
}
/**
* Returns the obj with default values. If `obj[key] == null`, use `default[key]`

@@ -57,0 +72,0 @@ * @param {*} obj

4

package.json
{
"name": "@ctx-core/object",
"version": "5.0.4",
"version": "5.1.0",
"description": "ctx-core object",

@@ -30,3 +30,3 @@ "main": "lib.js",

},
"gitHead": "533f71da75d0fd20cc2584c84d0649306d3b3db7"
"gitHead": "e165f97f474d72eddc0bd028d5c9384349ff4f15"
}
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