Tcsm
2023-09-19 b35a804358de7849f42bcdae934c236d13e3f233
1
2
3
4
5
'use strict';
 
exports.bin = function bin(str) {
  return parseInt(str.replace(/[^01]/g, ''), 2);
}