5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

tmlib.js公式エディタrunstantで知った省略表記

Posted at

trueを短く書く方法があった

!0

と書くとtrueの半分の長さで済む。

runstantで発見した箇所

jszipを使ってunzip関数を定義している箇所でloadメッソッドの
base64オプションに指定するtrueの代わりに!0を使っていた。

unzip=function(r){
var n=new JSZip,t=n.load(r,{base64:!0});
return t.file("data").asText()
}
{base64:!0}

Link

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?