lib/serializer.js
function makeLinks (links, item) {
  var retLinks = {}

  _.each(links, function (value, name) {
    if (_.isFunction(value)) {
      retLinks[name] = value(item)
    } else {
      retLinks[name] = _(value).toString()
    }
  })

  return retLinks
}
function makeLinks (links, item) {
  var retLinks = {}

  _.each(links, function (value, name) {
    if (_.isFunction(value)) {
      retLinks[name] = value(item)
    } else {
      retLinks[name] = _(value).toString()
    }
  })

  return retLinks
}
function makeLinks ( links , item ) { var retLinks = { } _ . each ( links , function ( value , name ) { if ( _ . isFunction ( value ) ) { retLinks [ name ] = value ( item ) } else { retLinks [ name ] = _ ( value ) . toString ( ) } } ) return retLinks }
Makes links to an item.
@private
@memberOf {Serializer}
@param {Object} links
@param {Mixed} item
@return {Object}
Makes links to an item .