crud test controller and class validator mocker generate classes

This commit is contained in:
IDONTSUDO 2023-12-19 21:10:58 +03:00
parent 6c85616c99
commit 9617d313a1
24 changed files with 242 additions and 108 deletions

View file

@ -1,5 +1,10 @@
/* eslint-disable @typescript-eslint/no-this-alias */
export const ArrayExtensions = () => {
if ([].firstElement === undefined) {
Array.prototype.firstElement = function () {
return this[0];
};
}
if ([].equals === undefined) {
// eslint-disable-next-line no-extend-native
Array.prototype.equals = function (array, strict = true) {