README
Functions
- log(...objs) ⇒
void console.log の代替です。eslintでエラーを回避するため。
- error(...objs) ⇒
void console.error の代替です。eslintでエラーを回避するため。
- debug(...objs) ⇒
void console.debug の代替です。eslintでエラーを回避するため。productionでは無視されます。
- dir(obj) ⇒
void console.dir の代替です。eslintでエラーを回避するため。
- sec(hms) ⇒
number 時間を表す HH:MM:SS を秒数に変換します。
- text(elm) ⇒
String XMLエレメント内の文字列を取得します。
log(...objs) ⇒ void
console.log の代替です。eslintでエラーを回避するため。
Kind: global function
| Param | Type | Description |
|---|---|---|
| ...objs | object |
console.logの引数と同じです。 詳しくは https://developer.mozilla.org/ja/docs/Web/API/Console を参照。 |
error(...objs) ⇒ void
console.error の代替です。eslintでエラーを回避するため。
Kind: global function
| Param | Type | Description |
|---|---|---|
| ...objs | object |
console.error の引数と同じです。 詳しくは https://developer.mozilla.org/ja/docs/Web/API/Console を参照。 |
debug(...objs) ⇒ void
console.debug の代替です。eslintでエラーを回避するため。productionでは無視されます。
Kind: global function
| Param | Type | Description |
|---|---|---|
| ...objs | object |
console.debug の引数と同じです。 詳しくは https://developer.mozilla.org/ja/docs/Web/API/Console を参照。 |
dir(obj) ⇒ void
console.dir の代替です。eslintでエラーを回避するため。
Kind: global function
| Param | Type | Description |
|---|---|---|
| obj | object |
console.dir の引数と同じです。 詳しくは https://developer.mozilla.org/ja/docs/Web/API/Console を参照。 |
sec(hms) ⇒ number
時間を表す HH:MM:SS を秒数に変換します。
Kind: global function
Returns: number - 秒数、変換に失敗した場合は NaN
| Param | Type | Description |
|---|---|---|
| hms | string |
時間を表す HH:MM:SS フォーマットの文字列。 |
text(elm) ⇒ String
XMLエレメント内の文字列を取得します。
Kind: global function
Returns: String - elm内に内包した文字列。文字列の両端の空白は削除。elmの指定がなければnullを返す。
| Param | Type | Description |
|---|---|---|
| elm | Element |
XMLエレメント |