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