import { Bits } from '../types' ; example param { String } string returns { Array } export default ( string ) : Bits => { const result = [ ] ; for ( let i = 0 ; i < string . length ; i ++ ) { if ( string [ i ] === '1' ) result . push ( 1 ) ; else if ( string [ i ] === '0' ) result . push ( 0 ) ; } return result ; } ;