New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bearclaw/is

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bearclaw/is - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

src/lib/isNil.d.ts

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Changelog

# [0.2.0](https://github.com/jafaircl/bearclaw/compare/is-0.1.0...is-0.2.0) (2022-10-15)
# 0.1.0 (2021-11-20)

@@ -7,0 +11,0 @@

2

package.json
{
"name": "@bearclaw/is",
"version": "0.1.0",
"version": "0.2.0",
"homepage": "https://github.com/jafaircl/bearclaw/tree/main/packages/is",

@@ -5,0 +5,0 @@ "repository": {

@@ -197,3 +197,3 @@ # is

### isNullOrUndefined
### isNil

@@ -203,5 +203,5 @@ Is the value [null](https://developer.mozilla.org/en-US/docs/Glossary/Null) or [undefined](https://developer.mozilla.org/en-US/docs/Glossary/undefined)?

```typescript
isNullOrUndefined(null) // true
isNullOrUndefined(undefined) // true
isNullOrUndefined(1) // false
isNil(null) // true
isNil(undefined) // true
isNil(1) // false
```

@@ -208,0 +208,0 @@

@@ -23,5 +23,5 @@ export * from './lib/isArray';

export * from './lib/isMap';
export * from './lib/isNil';
export * from './lib/isNodeContext';
export * from './lib/isNull';
export * from './lib/isNullOrUndefined';
export * from './lib/isNumber';

@@ -28,0 +28,0 @@ export * from './lib/isObject';

@@ -26,5 +26,5 @@ "use strict";

tslib_1.__exportStar(require("./lib/isMap"), exports);
tslib_1.__exportStar(require("./lib/isNil"), exports);
tslib_1.__exportStar(require("./lib/isNodeContext"), exports);
tslib_1.__exportStar(require("./lib/isNull"), exports);
tslib_1.__exportStar(require("./lib/isNullOrUndefined"), exports);
tslib_1.__exportStar(require("./lib/isNumber"), exports);

@@ -31,0 +31,0 @@ tslib_1.__exportStar(require("./lib/isObject"), exports);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBindable = void 0;
const isNullOrUndefined_1 = require("./isNullOrUndefined");
const isNil_1 = require("./isNil");
/**

@@ -23,5 +23,5 @@ * Is the value bindable? Arrow functions, constructors and functions that are

// eslint-disable-next-line no-prototype-builtins
return !isNullOrUndefined_1.isNullOrUndefined(value) && value.hasOwnProperty('prototype');
return !isNil_1.isNil(value) && value.hasOwnProperty('prototype');
};
exports.isBindable = isBindable;
//# sourceMappingURL=isBindable.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBoundFunction = void 0;
const __1 = require("..");
const isBindable_1 = require("./isBindable");
const isFunction_1 = require("./isFunction");
/**

@@ -21,5 +21,5 @@ * Is the value a bound function?

const isBoundFunction = (value) => {
return __1.isFunction(value) && !isBindable_1.isBindable(value);
return isFunction_1.isFunction(value) && !isBindable_1.isBindable(value);
};
exports.isBoundFunction = isBoundFunction;
//# sourceMappingURL=isBoundFunction.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isImmutable = void 0;
const __1 = require("..");
const isPrimitive_1 = require("./isPrimitive");
/**

@@ -18,3 +18,3 @@ * Is the value immutable?

const isImmutable = (value) => {
if (__1.isPrimitive(value)) {
if (isPrimitive_1.isPrimitive(value)) {
return true;

@@ -21,0 +21,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isObject = void 0;
const __1 = require("..");
const isNil_1 = require("./isNil");
/**

@@ -19,5 +19,5 @@ * Is the value a non-null Object?

const isObject = (value) => {
return !__1.isNullOrUndefined(value) && typeof value === 'object';
return !isNil_1.isNil(value) && typeof value === 'object';
};
exports.isObject = isObject;
//# sourceMappingURL=isObject.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isStructural = void 0;
const __1 = require("..");
const isPrimitive_1 = require("./isPrimitive");
/**

@@ -19,5 +19,5 @@ * Is the value a structural type (object)?

const isStructural = (value) => {
return !__1.isPrimitive(value);
return !isPrimitive_1.isPrimitive(value);
};
exports.isStructural = isStructural;
//# sourceMappingURL=isStructural.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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