Here at Coffee Script Cook Book, we aim to make things easy for you – there are no sophisticated scripts that require experience. Anyone can design their own website with our templates, saving both time and the money for a professional designer.
If I have a class: class Haha constructor: (@lolAmount = 1) -> alert @lolAmount And I want to check if an object is of the right class, Is it always safe to use constructor.name: haha = new Haha() unless haha.constructor.name is 'Haha' throw Error 'Wrong type' or is it better to use instanceof: haha = new Haha() unless haha instanceof Haha throw Error 'Wrong type' One argument I have for instanceo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く