38 - Variadic Functions
by steen_hansen
HTML
<!DOCTYPE html><meta charset="utf-8" />
<title>38 Every Check</title>
<div id='js-div' style="width:54%;" >
<a href='https://github.com/steenhansen/type-czech' target="_blank" class='git-hub'>GitHub Package</a>
<div id='js-code'>the javascript</div>
</div>
<div id="the-explanation" style="width:46%">
<div class='an-explantion'>38 - Every Check</div>
<div id='explanation-text'>
<br>
This page exists to highlight each possible checking function that executes within a PRE or POST test routine.
Each of the allTypes() checking function calls, from A to K are called at least once.
Short cut 'ER' for 'EMPTY-ERROR' to save space. It of course makes no actual sense.
<br><br>
<pre>
allTypes('John', 'Winston', 'Lennon')
</pre>
<span class='red-explanation'>A</span>. <span class='blue-explanation'>checkParam_emptyExtra</span>()
<pre>
allTypes('', '', '')
</pre>
<span class='red-explanation'>B</span>. <span class='blue-explanation'>checkParam_typeExtra</span>()
<pre>
allTypes(7,11)
</pre>
<span class='red-explanation'>C</span>. <span class='blue-explanation'>checkParam_emptyEither</span>()
<pre>
allTypes('Ringo', '', '')
</pre>
<span class='red-explanation'>D</span>. <span class='blue-explanation'>checkParam_typeEither</span>()
<pre>
allTypes('Lennon', '', 17)
</pre>
<span class='red-explanation'>E</span>. <span class='blue-explanation'>checkParam_empty</span>()
<pre>
allTypes('Pete', 'Best', {})
</pre>
<span class='red-explanation'>F</span>. <span class='blue-explanation'>check_interface</span>()
<pre>
allTypes('Stuart', 'Sutcliffe', {city:5})
</pre>
<span class='red-explanation'>G</span>. <span class='blue-explanation'>checkArgs_emptyEach</span>()
<pre>
allTypes('Billy', 'Preston', '')
</pre>
<span class='red-explanation'>H</span>. <span class='blue-explanation'>check_mutatedSnapshot</span>()
<pre>
allTypes('George', 'Harrison', {city:'Bath'})
</pre>
<span class='red-explanation'>I</span>. <span...