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.

21 lines (14 loc) 370 B
'use strict'; const internals = {}; module.exports = internals.flatten = function (array, target) { const result = target || []; for (let i = 0; i < array.length; ++i) { if (Array.isArray(array[i])) { internals.flatten(array[i], result); } else { result.push(array[i]); } } return result; };