🎈 value check
🎵 check if value in enum
🎵 check if value in json object
findValue in enumOrJsonValue
🎵 find in json array
values.find((e) => e.no == wnatNo );
🎵 check if object is empty
Object.keys(value).length === 0
🎈 loop
🎵 for ... of with index
const array1 = ['a', 'b', 'c'];
for (const [i, v] of array1.entries()) {
}
🎇 online editor
반응형
'nodejs' 카테고리의 다른 글
또 사용할것 같은 custom 함수들 (0) | 2022.12.07 |
---|---|
redis connect (0) | 2022.06.09 |
typeorm repository 뿌수기 (0) | 2022.02.15 |
aws s3 endpoint 적용기 (0) | 2022.02.04 |
typeorm multiple database (0) | 2021.08.03 |