import { bindAll } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";
Binds methods of an object to the object itself, overwriting the existing method
Use Array.prototype.forEach()
to return a function
that uses Function.prototype.apply()
to apply the given context (obj
) to fn
for each function specified.