upperFirst([string=''])
[string='']
(string): The string to convert.lowerFirst([string=''])
string
to lower case.[string='']
(string): The string to convert.isString(value)
value
is classified as a String
primitive or object.value
(*): The value to check.true
if value
is a string, else false
.isNumber(value)
value
is classified as a Number
primitive or object.value
(*): The value to check.true
if value
is a number, else false
.isBoolean(value)
value
is classified as a boolean primitive or object.value
(*): The value to check.true
if value
is a boolean, else false
.isFunction(value)
value
is classified as a Function
object.value
(*): The value to check.true
if value
is a function, else false
.isPlainObject(value)
value
is a plain object, that is, an object created by the Object
constructor or one with a [[Prototype]]
of null
.value
(*): The value to check.true
if value
is a plain object, else false
.isArray(value)
value
is classified as an Array
object.value
(*): The value to check.true
if value
is an array, else false
.isDate(value)
value
is classified as a Date
object.value
(*): The value to check.true
if value
is a date object, else false
.isNil(value)
value
is null
or undefined
.value
(*): The value to check.true
if value
is nullish, else false
.isObject(value)
value
is the language type of Object
. (e.g. arrays, functions, objects, regexes, new Number(0)
, and new String('')
)
value
(*): The value to check.true
if value
is an object, else false
.mix(object, [sources])
object
(Object): The destination object.[sources]
(...Object): The source objects. Support for up to 3 objectsobject
.deepMix(object, [sources])
F2.Util.mix
except that it iterates over own source properties.object
(Object): The destination object.[sources]
(...Object): The source objects.object
.indexOf(array, value)
value
is found in array
.array
(Array): The array to inspect.value
(*): The value to search for.-1
.forEach(collection, [iteratee=_.identity])
collection
and invokes iteratee
for each element. The iteratee is invoked with three arguments: (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false
.collection
(Array|Object): The collection to iterate over.[iteratee=_.identity]
(Function): The function invoked per iteration.collection
.getPixelRatio()
getRelativePosition(point, canvas)
point
(Object): the point need to convert.canvas
(Canvas): the canvas instance of chart.