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