php.js
Version:
Use phpjs functions as required.
10 lines (8 loc) • 402 B
JavaScript
module.exports=function(){ return is_binary.apply(exports,arguments) };
function is_binary(vr) {
// discuss at: http://phpjs.org/functions/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
}