UNPKG
@emailjs/browser
Version:
latest (4.4.1)
4.4.1
4.3.3
4.3.2
4.3.1
4.3.0
4.2.0
4.1.0
3.12.1
3.12.0
3.11.0
3.10.0
3.9.1
3.9.0
3.8.0
3.7.0
3.6.2
3.6.0
3.5.0
3.4.0
3.3.1
3.3.0
Official EmailJS SDK for browsers
www.emailjs.com
emailjs-com/emailjs-sdk
@emailjs/browser
/
es
/
utils
/
validateBlockListParams
/
validateBlockListParams.js
9 lines
(8 loc)
•
277 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export
const
validateBlockListParams
= (
list, watchVariable
) => {
if
(!
Array
.
isArray
(list)) {
throw
'The BlockList list has to be an array'
; }
if
(
typeof
watchVariable !==
'string'
) {
throw
'The BlockList watchVariable has to be a string'
; } };