function isAltBeacon(advertiserData) {
  var data = advertiserData.manufacturerSpecificData.data;
  var isCorrectLength = ((data.length + 6) === (LENGTH * 2));
  var isCorrectCode = (data.substr(0,4) === CODE);

  return isCorrectLength && isCorrectCode;
}
/**
 * Verify if the given manufacturerSpecificData represents an AltBeacon.
 * @param {Object} advertiserData The object containing all parsed data.
 */
Verify if the given manufacturerSpecificData represents an AltBeacon.
@param {Object} advertiserData The object containing all parsed data.
Verify if the given manufacturerSpecificData represents an AltBeacon . @param { Object } advertiserData The object containing all parsed data .
function isAltBeacon(advertiserData) {
  var data = advertiserData.manufacturerSpecificData.data;
  var isCorrectLength = ((data.length + 6) === (LENGTH * 2));
  var isCorrectCode = (data.substr(0,4) === CODE);
  return isCorrectLength && isCorrectCode;
}
function isAltBeacon ( advertiserData ) { var data = advertiserData . manufacturerSpecificData . data ; var isCorrectLength = ( ( data . length + 6 ) === ( LENGTH * 2 ) ) ; var isCorrectCode = ( data . substr ( 0 , 4 ) === CODE ) ; return isCorrectLength && isCorrectCode ; }
Verify if the given manufacturerSpecificData represents an AltBeacon.
Verify if the given manufacturerSpecificData represents an AltBeacon .