mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-12 02:39:58 +03:00
initial commit
This commit is contained in:
3
interface/src/validators/or.ts
Normal file
3
interface/src/validators/or.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export default (validator1: (value: any) => boolean, validator2: (value: any) => boolean) => {
|
||||
return (value: any) => validator1(value) || validator2(value);
|
||||
}
|
||||
Reference in New Issue
Block a user