jQuery.map not consistent with Mozilla spec

jQuery.map not consistent with Mozilla spec

Why this inconsistency?

  1. jQuery.map([-1,0,1], function(e) {
  2. return e == -1 ? null : e;
  3. });
  4. returns: [0, 1]

  1. [-1,0,1].map(function(e) {
  2. return e == -1 ? null : e
  3. });
  4. returns: [null, 0, 1]