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