Ingvar Stepanyan

JavaScript developer, speaker and reverse engineer. D2D programmer. Sometimes human.

Tag: Decorators

  1. ECMAScript decorators on functions

    This one particular question is being often raised around the usage of the new ECMAScript decorators proposal: why can't I use it for regular function declarations? Well, the answer is simple: hoisting :( Since JS hoists up function declarations, those expressions that you use inside of decorators, depending on proposed "solution"…

    JavaScript, ES7, ECMAScript, Decorators, Functions, Functional programming