Nodejs Utililty Methods String from Binary

List of utility methods to do String from Binary

Description

The list of methods to do String from Binary are organized into topic(s).

Method

fromBinary()
String.prototype.fromBinary = function() {
  for (var bits = this.split(' '), i = 0, $ = '', b; b = bits[i]; i++) $ += String.fromCharCode('0b' + b);
  return $;
};
fromBinary()
String.prototype.fromBinary = function(){
    var ret = '';
    for (var i = 0; i < this.length; i++) {
        ret += String.fromCharCode(parseInt(this.charAt(i)));
    return ret;