UNPKG

rubico

Version:

[a]synchronous functional programming

24 lines (23 loc) 597 B
export = values; /** * @name values * * @synopsis * ```coffeescript [specscript] * values<T>( * object String<T>|Array<T>|Set<T>|Map<any=>T>|Object<T>, * ) -> Array<T> * ``` * * @description * Get an array of values from an instance. * * ```javascript [playground] * import values from 'https://unpkg.com/rubico/dist/x/values.es.js' * * console.log(values({ a: 1, b: 2, c: 3 })) // [1, 2, 3] * console.log(values('abc')) // ['a', 'b', 'c'] * console.log(values(new Map([[1, 'hello'], [2, 'world']]))) // ['hello', 'world'] * ``` */ declare function values(object: any): any;