lib/respectify.js
function arrayDefaults(arr, values) {
  values.forEach(function(x) {
    if (!~arr.indexOf(x)) arr.push(x)
  })
}
function arrayDefaults(arr, values) {
  values.forEach(function(x) {
    if (!~arr.indexOf(x)) arr.push(x)
  })
}
function arrayDefaults ( arr , values ) { values . forEach ( function ( x ) { if ( ! ~ arr . indexOf ( x ) ) arr . push ( x ) } ) }
Array defaults helper, ensure all elements within
`default` exist in the `arr` input

@param {Array} source array
@param {Array} default values to check
@api private
Array defaults helper ensure all elements within default exist in the arr input