Type detection: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 9:
console.log(typeof(12345)); // Returns number
</pre>
== OASYS Assembler ==
<lang oasys_oaa>
; The following method checks if a global variable or property is an
; object type. Does not work with locals and arguments.
[&OBJ#,^]
,^<,^<< ; Remember old value
,^<*> ; Create new object
,^<<DES ; Destroy the object
,^<<EX ; Check if variable has been cleared
/>1RF ; It is clear
:>0RF ; It is not clear
</lang>
== PHP ==
[
<pre>
Line 21 ⟶ 36:
=== Specific tester functions ===
* [
|