Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 3766x 3766x 3766x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2569x 2569x 2569x 1x 1x 312x 312x 312x 8x 8x 312x 312x | /** * Copyright © 2020 2021 2022 7thCode.(http://seventh-code.com/) * This software is released under the MIT License. * opensource.org/licenses/mit-license.php */ "use strict"; /** * isNumber * * @remarks * is Number? * * @param value - unknown value. * @returns True/False */ export function isNumber(value: unknown): boolean { return ((typeof value === 'number') && (isFinite(value))); } /** * isValue * * @remarks * 値がnull,undef以外 * * @param value - 値 * @returns null,undef以外 */ export function isValue(value: unknown): boolean { return ((value !== null) && (typeof value !== 'undefined')); } /** * isObject * * @remarks * 値がオブジェクトか. * [],{}はオブジェクト。 * * @param value - 値 * @returns オブジェクトか */ export function isContainer(value: unknown): boolean { return ((value !== null) && (typeof value === 'object')); } /**/ export function isType(value: unknown): string { let result:string = typeof value; if (Array.isArray(value)) { result = "array"; } return result; } |