_.propertyOf

propertyOf_.propertyOf(object)
Inverse of _.property. Takes an object and returns a function which will return the value of a provided property.

var stooge = {name: 'moe'};
_.propertyOf(stooge)('name');
=> 'moe'
doc_Underscore
2016-04-09 09:05:32
Comments
Leave a Comment

Please login to continue.