ECMAScript 2017 (ECMA-262 8th edition) 既定の String.prototype.padStart
及び String.prototype.padEnd
の Polyfill(互換コード)を提供します。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* to-absolute-url.js | |
* | |
* @version 1.0.1 | |
* @author think49 | |
* @url https://gist.github.com/think49/1e8944a19a36dd57c829 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* poker.js | |
* | |
* @version 0.1.1 | |
* @author think49 | |
* @url https://gist.github.com/think49/39c020a54939513cb2fd | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* debug-code.js | |
* | |
* @version 1.0.3 | |
* @author think49 | |
* @url https://gist.github.com/think49/bfca562039aa29fa5766 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ | |
'use strict'; | |
var DebugCode = (function (Object, keys, defineProperty, String) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* es6-weakmap.js | |
* WeakMap (ECMA-262 6th Edition / ECMAScript 2015) | |
* | |
* | |
* @version 0.9.2 | |
* @author think49 | |
* @url https://gist.github.com/think49/283b7374e352e09fc131 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
* @see <a href="http://www.ecma-international.org/ecma-262/6.0/#sec-weakmap-constructor">23.3.1 The WeakMap Constructor – ECMA-262 6th Edition</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* jquery.get-classlist.js | |
* get a classList of first index's jQuery object. | |
* | |
* @version 1.0 | |
* @author think49 | |
* @url https://gist.github.com/think49/c382098fedd9ae7c6661 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* es6-string-prototype-startswith.js | |
* String.prototype.startsWith (ECMA-262 6th Edition / ECMAScript 2015) | |
* | |
* | |
* @version 1.0.0 | |
* @author think49 | |
* @url https://gist.github.com/think49/908b8d5f08c9945beea7 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
* @see <a href="http://www.ecma-international.org/ecma-262/6.0/#sec-string.prototype.startswith">21.1.3.18 String.prototype.startsWith – ECMA-262 6th Edition</a> |
ver 1.0.3 (2016/05/11)
CSV.parse()
の内部実装をString.prototype.replace
からRegExp.prototype.exec
に変更した
ver 1.0.2 (2016/05/11)
CSV.parse()
で第三引数reviver
が指定された場合、配列化する前にセル値を引数にとるコールバック関数reviver
を呼び出すようにしたCSV.stringify()
で第三引数replacer
が指定された場合、CSV文字列に変換する前に要素値を引数にとるコールバック関数replacer
を呼び出すようにした
ver 1.0.1 (2016/05/10)