summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/var/is_binary.js
blob: be380f14d44a400c90f237664d226088a3e179ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';

module.exports = function is_binary(vr) {
  // eslint-disable-line camelcase
  //  discuss at: http://locutus.io/php/is_binary/
  // original by: Brett Zamir (http://brett-zamir.me)
  //   example 1: is_binary('This could be binary as far as JavaScript knows...')
  //   returns 1: true

  return typeof vr === 'string'; // If it is a string of any kind, it could be binary
};
//# sourceMappingURL=is_binary.js.map