UNPKG

@resk/core

Version:

An innovative TypeScript framework that empowers developers to build applications with a fully decorator-based architecture for efficient resource management. By combining the power of decorators with a resource-oriented design, DecorRes enhances code cla

1 lines 210 B
'use strict';function y(...r){if(r.length===1)return Array.isArray(r[0])?r[0]:[];let e=null;for(var t in r){const n=r[t];if(Array.isArray(n)){if(n.length)return n;e||(e=n);}}return e||[]}exports.defaultArray=y;