feige
2024-05-18 70b82496c025c1a8a825e74a1dd3b80d9e73adb7
1
2
3
4
5
'use strict';
 
exports.bin = function bin(str) {
  return parseInt(str.replace(/[^01]/g, ''), 2);
}