Skip to content

Commit 46bfbbc

Browse files
committed
remove: class로 바꾸면서 new 연산자 유효성 검사 코드 제거
1 parent adb0435 commit 46bfbbc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/utils/validation.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { TodoItem } from "../types/todo.js";
22

33
const validation = {
4-
newTarget(target) {
5-
if (!target) {
6-
throw new Error("You must use new keyword");
7-
}
8-
},
94
state(todoList: TodoItem[]) {
105
return todoList.filter(
116
(todo) =>

0 commit comments

Comments
 (0)