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 | 512x 512x | import getNumberValues from './getNumberValues'; /** * This helper function retrieves the first number value from the provided sequence for the given key. * @param sequence - The sequence from which to retrieve the number value. * @param key - The key for which to retrieve the number value. * @returns The first number value for the given key, or null if no value is found. */ function getFirstNumberValue(sequence: unknown, key: string): number | null { const values = getNumberValues(sequence[key]); return values ? values[0] : null; } export { getFirstNumberValue }; |