![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
The is-object npm package is a simple utility that checks if a given value is an object. It is useful for type-checking in JavaScript, ensuring that a value is an object and not another type like a string, number, or array.
Basic Object Check
This feature allows you to check if a given value is an object. The function returns true for plain objects and false for arrays, null, strings, and other non-object types.
const isObject = require('is-object');
console.log(isObject({})); // true
console.log(isObject([])); // false
console.log(isObject(null)); // false
console.log(isObject('string')); // false
The lodash.isobject package is a part of the Lodash library, which provides utility functions for common programming tasks. lodash.isobject checks if a value is an object, similar to is-object, but it is part of a larger suite of utilities, making it more versatile for various tasks.
The is-plain-object package checks if a value is a plain object, i.e., an object created by the Object constructor or with a null prototype. It is more specific than is-object, which checks for any object type.
The isobject package is another utility for checking if a value is an object. It is similar to is-object but includes additional checks to ensure the value is not an array or null.
Checks whether a value is an object
Because typeof null
is a troll.
var isObject = require('is-object');
var assert = require('assert');
assert.equal(isObject(null), false);
assert.equal(isObject({}), true);
npm install is-object
v1.0.2 - 2020-12-02
#2
1503b2b
eslint
, drop jscs
0b33130
auto-changelog
4c1af71
8e02200
ffaa4b7
tape
, covert
, jscs
23ae901
f48732a
b3a84ee
nyc
on all tests a03b699
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, tape
db89fc0
tape
, jscs
bcb3ac9
a12751e
io.js
v2.0
74d46d7
b5505c3
c79aee4
1095633
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
5db6e17
eslint
, @ljharb/eslint-config
, tape
; add safe-publish-latest
ceaf8ab
io.js
v2.2
cf9f70e
41b759b
io.js
v3.0
29cd85b
5510e47
node
/iojs
versions now ship with an npm
that understands ^
. 849b718
travis-ci
tests on iojs
and 0.12
; allow 0.8
failures; speed up builds. 655c5f7
af52357
70ab476
08175df
auto-changelog
, tape
0f0dde7
covert
, tape
6148d0e
tape
, jscs
dff288a
tape
, jscs
ff04f70
jscs
75e8791
jscs
, tape
cc7e221
tape
, jscs
be32959
0dedc4b
0376b83
fe00aab
028ff10
lint
script f431139
auto-changelog
; add aud
ad0b964
funding
field ab362a6
592539d
pull_request_target
event f26329d
58efaae
120491a
tape
99ccffe
9d03921
a72781e
31aabd0
4c3e061
368053e
FAQs
Checks whether a value is an object
The npm package is-object receives a total of 2,957,790 weekly downloads. As such, is-object popularity was classified as popular.
We found that is-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.