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