UNPKG

tastypie

Version:

Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces

14 lines (9 loc) 240 B
var map = require('./map'); var prop = require('../function/prop'); /** * Extract a list of property values. */ function pluck(obj, propName){ return map(obj, prop(propName)); } module.exports = pluck;