JekFk API
 
Jek
«
JekFk JavaScript Framework

Namespace Jek

JekFk Framework

Defined in: JekFk.js.

Field Summary
info JekFk framework info
fkStats Framework statistics
Method Summary
id(idType[optional]) Generates a unique ID
defParam(param, defaultParam) If param is undefined then returns default parameter else returns param
isBoolean(o) Returns true if o is of type Boolean, false otherwise.
isNull(o) Returns true if o is null, false otherwise.
isString(o) Returns true if o is of type String, false otherwise.
isNumber(o) Returns true if o is of type Number, false otherwise.
isArray(o) Returns true if o is of type Array, false otherwise.
isFn(o) Returns true if o is of type Function, false otherwise.
isUndef(o) Returns true if o is of type undefined, false otherwise.
isObject(o) Returns true if o is of type Object, false otherwise.
isEmail(email) Return true if email is correct, false � otherwise
toObjName(o) Returns object toString: '[object Object]' | '[object String]' | '[object Array]' | '[object Number]' | .
roundTo(value, decimalPositions) Round a number
guid() Generates a Globally Unique IDentifier (GUID)
escapeString(str) Escapes a string according to the JSON specification.
fromJSON(json) Decodes a JSON string to an Object.
toJSON(obj) Returns a string containing the JSON representation of 'obj' value.
trimLeft(str) Trim leading whitespace characters from the String.
trimRight(str) Trim trailing whitespace characters from the String.
trim(str) Trim marginal whitespace characters from the String.
capitalize(str) Read in a sequence of words from string input and capitalize each one (make first letter uppercase; make rest lowercase).
repeat(str, n) Repeats the specified string 'n' times to form a new String.
words(string) Split string into word array
toggle(str, val1, val2) Switch a string between two alternating values
urlEncode(str) Encodes URL
urlDecode(str) Decodes URL
padLeft(str, char, num) padLeft
padRight(str, char, num) padRight
removeVowels(str, char, num) padRight
newPackage(pk, newObj[optional]) Create new package
tryFns() Try all functions in input
Field Detail
Jek.info
JekFk framework info
Jek.fkStats : JekStats
Framework statistics
Jek.array
Jek.conversion
Jek.algorithm
Jek.stats
Method Detail
Jek.id(idType[optional]) : String
Generates a unique ID
Parameters:
{String} idType[optional] default value: "jek"
Returns:
{String} A unique ID
Jek.defParam(param, defaultParam) : Object
If param is undefined then returns default parameter else returns param
Parameters:
{Object} param
{Object} defaultParam
Returns:
{Object}
Jek.isBoolean(o) : Boolean
Returns true if o is of type Boolean, false otherwise.
Parameters:
{any} o
Returns:
{Boolean}
Jek.isNull(o) : Boolean
Returns true if o is null, false otherwise.
Parameters:
{any} o
Returns:
{Boolean}
Jek.isString(o) : Boolean
Returns true if o is of type String, false otherwise.
Parameters:
{any} o
Returns:
{Boolean}
Jek.isNumber(o) : Boolean
Returns true if o is of type Number, false otherwise.
Parameters:
{any} o
Returns:
{Boolean}
Jek.isArray(o) : Boolean
Returns true if o is of type Array, false otherwise.
Parameters:
{any} o
Returns:
{Boolean}
Jek.isFn(o) : Boolean
Returns true if o is of type Function, false otherwise.
Parameters:
{any} o
Returns:
{Boolean}
Jek.isUndef(o) : Boolean
Returns true if o is of type undefined, false otherwise.
Parameters:
{any} o
Returns:
{Boolean}
Jek.isObject(o) : Boolean
Returns true if o is of type Object, false otherwise.
Parameters:
{any} o
Returns:
{Boolean}
Jek.isEmail(email) : Boolean
Return true if email is correct, false � otherwise
Parameters:
{String} email
Returns:
{Boolean}
Jek.toObjName(o) : String
Returns object toString: '[object Object]' | '[object String]' | '[object Array]' | '[object Number]' | ...
Parameters:
{any} o
Returns:
{String}
Jek.roundTo(value, decimalPositions) : Number
Round a number
Parameters:
{Number} value
{Number} decimalPositions
Returns:
{Number}
Jek.guid() : String
Generates a Globally Unique IDentifier (GUID)
Returns:
{String}
Jek.escapeString(str) : String
Escapes a string according to the JSON specification.
Parameters:
{String} str
Returns:
{String}
Jek.fromJSON(json) : Object
Decodes a JSON string to an Object.
Parameters:
{String} json
Returns:
{Object}
Jek.toJSON(obj) : String
Returns a string containing the JSON representation of 'obj' value.
Parameters:
{Object} obj
Returns:
{String}
Jek.trimLeft(str) : String
Trim leading whitespace characters from the String.
Parameters:
{String} str
Returns:
{String}
Jek.trimRight(str) : String
Trim trailing whitespace characters from the String.
Parameters:
{String} str
Returns:
{String}
Jek.trim(str) : String
Trim marginal whitespace characters from the String.
Parameters:
{String} str
Returns:
{String}
Jek.capitalize(str) : String
Read in a sequence of words from string input and capitalize each one (make first letter uppercase; make rest lowercase).
Parameters:
{String} str
Returns:
{String}
Jek.repeat(str, n) : String
Repeats the specified string 'n' times to form a new String.
Parameters:
{String} str String to repeat
{Number} n How many times to repeat the string
Returns:
{String}
Jek.words(string) : Array
Split string into word array
Parameters:
{String} string
Returns:
{Array}
Jek.toggle(str, val1, val2) : String
Switch a string between two alternating values
Parameters:
{String} str
{String} val1
{String} val2
Returns:
{String}
Jek.urlEncode(str) : String
Encodes URL
Parameters:
{String} str
Returns:
{String}
Jek.urlDecode(str) : String
Decodes URL
Parameters:
{String} str
Returns:
{String}
Jek.padLeft(str, char, num)
padLeft
Parameters:
str
char
num
Jek.padRight(str, char, num)
padRight
Parameters:
str
char
num
Jek.removeVowels(str, char, num)
padRight
Parameters:
str
char
num
Jek.newPackage(pk, newObj[optional]) : Object
Create new package
Parameters:
{String} pk
{any} newObj[optional]
Returns:
{Object}
Jek.tryFns() : any
Try all functions in input
Parameters:
{Function} args...
Returns:
{any}
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Oct 08 2011 15:54:11 GMT+0200 (CEST)