chore: fmt
This commit is contained in:
parent
2041858fd9
commit
c72c268b37
@ -20,10 +20,13 @@ export const loadImpl = html => () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @type {(_: CheerioNode) => () => Array<CheerioNode>} */
|
/** @type {(_: CheerioNode) => () => Array<CheerioNode>} */
|
||||||
export const toArrayImpl = n => () => Array(n.length) .fill(undefined) .map((_, ix) => n.slice(ix, ix + 1))
|
export const toArrayImpl = n => () =>
|
||||||
|
Array(n.length)
|
||||||
|
.fill(undefined)
|
||||||
|
.map((_, ix) => n.slice(ix, ix + 1))
|
||||||
|
|
||||||
/** @type {(_: CheerioNode) => () => CheerioNode | null} */
|
/** @type {(_: CheerioNode) => () => CheerioNode | null} */
|
||||||
export const toNullableImpl = n => () => n.length === 0 ? null : n.first()
|
export const toNullableImpl = n => () => (n.length === 0 ? null : n.first())
|
||||||
|
|
||||||
/** @type {(_: CheerioNode) => () => CheerioNode} */
|
/** @type {(_: CheerioNode) => () => CheerioNode} */
|
||||||
export const childrenImpl = n => () => n.children()
|
export const childrenImpl = n => () => n.children()
|
||||||
|
Loading…
Reference in New Issue
Block a user