Groups all utilities functions
Classes
Members
-
<static, readonly> $TYPES :string
-
Enum for Apy component known types
Type:
- string
Properties:
Name Type Default Description LISTstring list DICTstring dict POLYstring poly MEDIAstring media POINTstring point FLOATstring float NESTEDstring nested NUMBERstring number STRINGstring string BOOLEANstring boolean INTEGERstring integer EMBEDDEDstring embedded OBJECTIDstring objectid DATETIMEstring datetime RESOURCEstring resource COLLECTIONstring collection
Methods
-
<static> fieldClassByType(type)
-
Get any known Field Class by its type
Parameters:
Name Type Description typestring Field type
Throws:
-
If type is not found
- Type
- apy.errors.Error
Returns:
Any Field Class matching type or null
- Type
- * | null
-
-
<static> isBlob(value)
-
Determines if a reference is a
BlobObject.Parameters:
Name Type Description value* Reference to check.
Returns:
- Type
- boolean
-
<static> isDate(value)
-
Determines if a value is a date.
Parameters:
Name Type Description value* Reference to check.
Returns:
True if
valueis aDate.- Type
- boolean
-
<static> isFile(value)
-
Determines if a reference is a
FileObject.Parameters:
Name Type Description value* Reference to check.
Returns:
- Type
- boolean
-
<static> isFloat(value)
-
Determines if a reference is a
Float.Parameters:
Name Type Description valuestring | number value Reference to check.
Returns:
True if
valueis aFloat.- Type
- boolean
-
<static> isFunction(value)
-
Determines if a reference is a
Function.Parameters:
Name Type Description value* Reference to check.
Returns:
True if
valueis aFunction.- Type
- boolean
-
<static> isNegativeZero(number)
-
Determines if a number is a
Negative Zero.Parameters:
Name Type Description numbernumber value Reference to check.
Returns:
True if
valueis aNegative Zero.- Type
- boolean
-
<static> isObject(value)
-
Determines if a reference is an
Object. Unliketypeofin JavaScript,nulls are not considered to be objects. Note that JavaScript arrays are objects.Parameters:
Name Type Description value* Reference to check.
Returns:
True if
valueis anObjectbut notnull.- Type
- boolean
-
<static> isString(value)
-
Determines if a reference is a
String.Parameters:
Name Type Description value* Reference to check.
Returns:
True if
valueis aString.- Type
- boolean
-
<static> patchArray()
-
Add to Array type, method
isArray -
<static> patchObject()
-
Add to Object type, method
assign(target) (Object copy) -
<static> patchString()
-
Add to String type, methods
capitalize() replaceAll(target, replacement) -
<inner> _getFieldClassByType()
-
Common behaviour
Returns:
Any Field Class matching type or null
- Type
- * | null