UNPKG

rubico

Version:

[a]synchronous functional programming

22 lines (17 loc) 637 B
/** * rubico v2.6.2 * https://github.com/a-synchronous/rubico * (c) 2019-2024 Richard Tong * rubico may be freely distributed under the MIT license. */ (function (root, values) { if (typeof module == 'object') (module.exports = values) // CommonJS else if (typeof define == 'function') define(() => values) // AMD else (root.values = values) // Browser }(typeof globalThis == 'object' ? globalThis : this, (function () { 'use strict' const objectValues = Object.values const values = object => object == null ? [] : typeof object.values == 'function' ? [...object.values()] : objectValues(object) return values }())))