yz3456
2024-08-06 e8cdd22396d68871bed48610530a89063d63bb40
1
2
3
4
5
'use strict';
 
exports.bin = function bin(str) {
  return parseInt(str.replace(/[^01]/g, ''), 2);
}