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