This page is a work in progress.
FnService - Function Service
...
isF
Short for "is Function". Checks if argument is a function.
| Example Usage | Arguments | Return Values |
|---|---|---|
fs.isF(f); |
...
f - the variable to check if it is a function |
...
Return Value
...
|
...
...
|
...
if |
...
is not a function |
...
isA
Short for "is Array". Checks if argument is an array.
| Example Usage | Arguments | Return Values |
|---|---|---|
fs.isA(a); |
Arguments
a - the variable to check if it is an array |
...
Return Value
...
|
...
...
returns true |
...
...
|
...
if |
...
is not an array |
...
isS
Short for "is String". Checks if argument is a string.
| Example Usage | Arguments | Return Values |
|---|---|---|
fs.isS(s); |
Arguments
s - the variable to check if it is a string |
...
Return Value
...
|
...
...
|
...
if |
...
is not a string |
...
isO
Short for "is Object". Checks if argument is an object.
| Example Usage | Arguments | Return Values |
|---|---|---|
fs.isO(o); |
Arguments
o - the variable to check if it is an object |
...
...
|
...
...
|
...
if |
...
is not an object |
...
contains
Checks if an array contains a value.
| Example Usage | Arguments | Return Values |
|---|---|---|
fs.contains(a, x); |
Arguments
|
Return Value
Truthy: The index of the item you are looking for.
...
the index of false if |
...
-1 |
...
if |
...
isn't in the array |
...
areFunctions
areFunctionsNonStrict
windowSize
Returns inner dimensions of the window minus given values.
| Example Usage | Arguments | Default Params | Return Values |
|---|---|---|---|
fs.windowSize(offH, offW); |
|
|
isMobile
debugOn
find
inArray
...