Javascript Array push16(val)

Description

Javascript Array push16(val)

Array.prototype.push16 = function(val) {
  // low byte//from  w w w .  java 2s . co m
  this.push(0x00FF & val);
  // high byte
  this.push(val >> 8);
  // chainable
  return this;
};



PreviousNext

Related