KnockoutJS Util Functions
02 May 2019 - Sanjeev
Recent days, I happen to put my hands on few KnockoutJS projects. KnockoutJS Utils package offers many reusable functions. This page helps me as quick reference to those functions.
- utils.arrayForEach
- utils.arrayFirst
- utils.arrayFilter
- utils.arrayGetDistinctValues
- utils.arrayIndexOf
- utils.arrayMap
- utils.arrayPushAll
- utils.arrayRemoveItem
- utils.cloneNodes
- utils.createSymbolOrString
- utils.extend
- utils.fieldsIncludedWithJsonPost
- utils.getFormFields
- utils.objectMap
- utils.peekObservable
- utils.postJson
- utils.parseJson
- utils.registerEventHandler
- utils.stringifyJson
- utils.range
- utils.toggleDomNodeCssClass
- utils.triggerEvent
- utils.unwrapObservable
- utils.objectForEach
- utils.addOrRemoveItem
- utils.setTextContent
Do let me know if you have any clarification/suggestion on this post. I will be happy to know your feedback!