index.js
function populateStatusesMap (statuses, codes) {
  var arr = []

  Object.keys(codes).forEach(function forEachCode (code) {
    var message = codes[code]
    var status = Number(code)

    // Populate properties
    statuses[status] = message
    statuses[message] = status
    statuses[message.toLowerCase()] = status

    // Add to array
    arr.push(status)
  })

  return arr
}
function populateStatusesMap (statuses, codes) {
  var arr = []

  Object.keys(codes).forEach(function forEachCode (code) {
    var message = codes[code]
    var status = Number(code)

    // Populate properties
    statuses[status] = message
    statuses[message] = status
    statuses[message.toLowerCase()] = status

    // Add to array
    arr.push(status)
  })

  return arr
}
function populateStatusesMap ( statuses , codes ) { var arr = [ ] Object . keys ( codes ) . forEach ( function forEachCode ( code ) { var message = codes [ code ] var status = Number ( code ) // Populate properties statuses [ status ] = message statuses [ message ] = status statuses [ message . toLowerCase ( ) ] = status // Add to array arr . push ( status ) } ) return arr }
Populate the statuses map for given codes.
@private
Populate the statuses map for given codes .