node-red-contrib-iiot-opcua
Version:
An Industrial IoT OPC UA toolbox contribution package for Node-RED based on node-opcua.
27 lines (24 loc) • 662 B
JavaScript
;
/**
The BSD 3-Clause License
Copyright 2022 - DATATRONiQ GmbH (https://datatroniq.com)
All rights reserved.
node-red-contrib-iiot-opcua
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.isArray = exports.isNotDefined = void 0;
/**
* Asserts that the object is undefined or null
*/
const isNotDefined = (object) => {
return typeof object === 'undefined' || object === null;
};
exports.isNotDefined = isNotDefined;
/**
* Asserts that the given object is an array of type <T>.
*/
const isArray = (object) => {
return Array.isArray(object);
};
exports.isArray = isArray;
//# sourceMappingURL=assertion.js.map