UNPKG

@protorians/core

Version:
4 lines (3 loc) 183 B
export function $ui(target, scope) { return typeof target === 'string' ? Array.from((scope || document).querySelectorAll(target)) : (Array.isArray(target) ? target : [target]); }