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