UNPKG

@softchef/cdk-iot-device-management

Version:

IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.

19 lines (16 loc) 475 B
"use strict"; /** * Returns `true` when the argument is an iterable, `false` otherwise * * @alias module:samsam.isIterable * @param {*} val - A value to examine * @returns {boolean} Returns `true` when the argument is an iterable, `false` otherwise */ function isIterable(val) { // checks for null and undefined if (typeof val !== "object") { return false; } return typeof val[Symbol.iterator] === "function"; } module.exports = isIterable;