think49 Profile
think49

@think49

Followers
113
Following
446
Media
58
Statuses
5K

興味カテゴリ JavaScript/ECMAScript/(X)HTML/CSS

東京都
Joined December 2008
Don't wanna be here? Send us removal request.
@think49
think49
5 years
https://t.co/ftmvYLG5En 配列のソート順が同じなら、毎回、Array#includesで全走査は不要。 改善案: Array#indexOfの返り値をキャッシュ->第二引数で検索開始場所を指定。 RegExp#execのようにwhileループできたら面白そう。 #JavaScript
Tweet card summary image
teratail.com
```js const arr1 = [1,2,4,5]; const arr2 = [1,3,4,6]; const res_arr = []; for (let num = 0; nu
0
3
0
@think49
think49
8 years
リンクが修正されました。お疲れ様です。
0
0
0
@think49
think49
8 years
(teratail 的には validator を使いましょう、とか…) https://t.co/H8HkovjH3Y
0
0
0
@think49
think49
8 years
https://t.co/KptnoyGx2a 「リンク等」でリンクされてないのは何故だろう、と思って、HTMLソースを読んだ。 「他人に尋ねる前に、ソースを読め」という @DEFGHI1977 さんのメッセージが込められている(多分)。
1
0
0
@think49
think49
8 years
今更ながら、@@DEFGHI1977 さんのブログを知った。teratailのプロフィールを読めば、すぐに気が付いたはずなのに。 https://t.co/CV28BJfsFE
0
0
0
@think49
think49
8 years
現実的な問題としては、#ES7 定義の String.prototype.startsWith のPolyfillコードを書くときに lastIndexOf を使わないように気を付ける必要がある事かな https://t.co/ab9o5299VH
0
0
0
@think49
think49
8 years
IE8-11には "あいうあいう".lastIndexOf("あい", 0) === 3 が成立してしまうバグがあるらしい。 https://t.co/aseQSv1JH2 #ECMAScript #JavaScript
2
0
0
@think49
think49
8 years
ECMAScript 2017 に準拠した方法で Date オブジェクトをシリアライズ(文字列化)する [JavaScript] on @Qiita
0
0
0
@think49
think49
9 years
愛用していたGoogle Chrome拡張『Create Link』が動かなくなったので『TabCopy』を入れてみた。 ページ上で文字列を選択した時にアンカーテキストとして認識するオプションはないのね…。 https://t.co/zo5XNjG6ZM
0
0
1
@think49
think49
9 years
array-findwordall.js はごちゃごちゃ書かなくても「配列の要素をAND検索する」で十分伝わったかもしれない。
0
0
0
@think49
think49
9 years
正の整数を文字列ベースで判定する。/ Number reverse · jsPerf https://t.co/3uSsc7HoL2 #JavaScript #ECMAScript
0
0
0
@think49
think49
9 years
[JavaScript] 意図的に汎用な関数 on @Qiita
0
0
0
@think49
think49
9 years
JavaScriptにおける繰り返し処理の使い分け on @Qiita
0
0
0
@think49
think49
9 years
ArrayLike オブジェクトで Array.prototype 系メソッドを使用する [JavaScript] on @Qiita
0
0
0
@think49
think49
9 years
書いた。shuffleして抽出するよりもランダムに抽出して重複チェックした方が総合的に速い。/ 配列からランダムに指定した数の要素を抽出する - JSFiddle https://t.co/99SeMb2L4X #JavaScript #ECMAScript
0
0
0