Join Joe Marini for an in-depth discussion in this video Getting object information, part of Learning Underscore.js.
So back in the snippets, let's go ahead and copy these lines,…and we'll paste.…Underscore contains a function called keys.…And the keys function can be used to retrieve the keys of a given object.…So, let's open the sample data file really quick.…And you can see that here in the students array we have lists of objects.…And the keys are these property names here, and…the values are the values given to each property name.…
So for example,…we have first name and then Woody.…We have a property named school, and then the value is Thoreau.…
- Understanding what Underscore.js is and does
- Installing Underscore.js
- Sorting, grouping, and filtering data sets
- Extracting information about arrays and objects
- Using templates to format data