⌈⌋ ⎇ branch:  Bitrhythm


Hex Artifact Content

Artifact 9c8922ef46a26c142c5b8b8d212783c10c1b810e06a4f69d423e164ba929fc38:


0000: 69 6d 70 6f 72 74 20 7b 20 54 5f 46 55 4e 43 54  import { T_FUNCT
0010: 49 4f 4e 20 7d 20 66 72 6f 6d 20 27 2e 2f 2e 2e  ION } from './..
0020: 2f 2e 2e 2f 67 6c 6f 62 61 6c 2d 76 61 72 69 61  /../global-varia
0030: 62 6c 65 73 27 0a 2f 2a 2a 0a 20 2a 20 43 68 65  bles'./**. * Che
0040: 63 6b 20 69 66 20 70 61 73 73 65 64 20 61 72 67  ck if passed arg
0050: 75 6d 65 6e 74 20 69 73 20 61 20 66 75 6e 63 74  ument is a funct
0060: 69 6f 6e 0a 20 2a 20 40 70 61 72 61 6d 20 20 20  ion. * @param   
0070: 7b 20 2a 20 7d 20 76 61 6c 75 65 20 2d 0a 20 2a  { * } value -. *
0080: 20 40 72 65 74 75 72 6e 73 20 7b 20 42 6f 6f 6c   @returns { Bool
0090: 65 61 6e 20 7d 20 2d 0a 20 2a 2f 0a 65 78 70 6f  ean } -. */.expo
00a0: 72 74 20 64 65 66 61 75 6c 74 20 66 75 6e 63 74  rt default funct
00b0: 69 6f 6e 20 69 73 46 75 6e 63 74 69 6f 6e 28 76  ion isFunction(v
00c0: 61 6c 75 65 29 20 7b 0a 20 20 72 65 74 75 72 6e  alue) {.  return
00d0: 20 74 79 70 65 6f 66 20 76 61 6c 75 65 20 3d 3d   typeof value ==
00e0: 3d 20 54 5f 46 55 4e 43 54 49 4f 4e 0a 7d        = T_FUNCTION.}