Lea Verou 5.05.2011

StronglyTyped: A library for strongly typed properties & constants in JavaScript

Przeczytaj oryginał

StronglyTyped is a JavaScript library that enables strongly typed properties and constants in the loosely typed JS environment. It uses ES5 getters and setters to enforce types like Boolean, Number, String, Integer, and custom types, throwing TypeErrors for invalid assignments. The library also includes constants (final properties) and provides cross-browser support for Function.prototype.bind and Array.prototype.forEach.

StronglyTyped: A library for strongly typed properties & constants in JavaScript

komentarzy

Brak komentarzy

Bądź pierwszy, który podzieli się swoimi myślami!

Rozszerzenie przeglądarki

Uzyskaj natychmiastowy dostęp do AllDevBlogs z przeglądarki

Tydzień

No top articles yet