find first and last occurence in knockout js template code example Example: find first and last occurence in knockout js template arrayName.indexOf('value')