code: function isDataBinaryRobust(data) {
    // console.log('data is binary ?')
    var patternVertex = /vertex[\s]+([\-+]?[0-9]+\.?[0-9]*([eE][\-+]?[0-9]+)?)+[\s]+([\-+]?[0-9]*\.?[0-9]+([eE][\-+]?[0-9]+)?)+[\s]+([\-+]?[0-9]*\.?[0-9]+([eE][\-+]?[0-9]+)?)+/g;
    var text = ensureString(data);
    var isBinary = patternVertex.exec(text) === null;
    return isBinary;
  }
docs: a more robust version of the above, that does NOT require the whole file