rattail
rattail copied to clipboard
A Vite+ oriented, AI Agent friendly front-end toolchain.
## description When I try to improve some test suits, I find that there will be issues with the test environment. For example, when testing `getScrollTop(window)`, `"scrollTop" in element` will...
## description When I explore codes, I find that there're similar type helpers `type Fn = (a: T, b: T) => any` or inline types in the `differenceWith`, `intersectionWith`, and...
## description `NOOP` in rattail is using FunctionDeclaration. But I find the same `NOOP` in [Vue](https://github.com/vuejs/core/blob/b5ff930089985a58c3553977ef999cec2a6708a4/packages/shared/src/general.ts#L8) and [Vueuse](https://github.com/vueuse/vueuse/blob/0f11df11962f5f2e912d66c8544bc6767630780a/packages/shared/utils/is.ts#L16) is using ArrowFunctionExpression. So should `NOOP` in the form of ArrowFunctionExpression be...
`groupBy` throws `TypeError: result[key].push is not a function` when the grouping function returns an `Object.prototype` property name such as `"constructor"`, `"toString"`, `"valueOf"`, `"hasOwnProperty"`, or `"__proto__"`. ```sh npm init -y npm...