export function omit < T = Object > ( obj , key ) { delete ( obj as any ) [ key ] ; return obj as T ; } export function inherit ( ) { Object . prototype . omit = function < T > ( key ) : T { return omit ( this , key ) ; } ; } export default omit ;