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