import { Fn } from '../types/utils' ; import { isArray } from './typeOf' ; export function Bind ( fn , arg ) { if ( ! isArray ( arg ) ) arg = [ arg ] ; function proxyFn ( ) { return fn . apply ( this , arg . concat ( Array . from ( arguments ) ) ) ; } return proxyFn ; }