Underscore.JS – values method

Syntax
_.values(object)

values method return all the values of object’s properties.

// Example 1
var result = _.values({one: 1, two : 2, three: 3});
console.log(result);
Output
[ 1, 2, 3 ]

Leave a comment

Your email address will not be published. Required fields are marked *