Docs
ServoyCloudSupportSamplesOpen SourceCommunity
  • Home
  • GUIDES
    • Platform Overview
    • Get Servoy
    • Get Started
      • Chapter 0
      • Chapter 1
      • Chapter 2
      • Chapter 3
      • Chapter 4
      • Chapter 5
    • Get Help
      • SuLA Instructions
      • SuLA Terms
    • Develop
      • Application Design
        • Forms
          • Layout Management
            • Simple Layout
            • Fully Responsive
              • Bootstrap 12-Grid
              • Flexbox
              • Custom Div
              • Collapsible Container
              • Simple Collapsible
              • Center Container
              • Inline Group Container
            • Abstract Form
          • Form Containers
            • Form Container
            • Tab Panel
            • Split Pane
            • Collapse
            • Accordion Panel
            • Form Component
            • List Form Component
          • Form Inheritance
          • Form Components
        • UI Components
          • Buttons and Text
            • Badge
            • Button
            • Data Label
            • Dropdown
            • Image
            • Label
          • Grids
            • Data Grid
            • Power Grid
            • Table
          • Input Controls
            • Calendar
            • Calendar Inline
            • Checkbox
            • Choice Group
            • Combobox
            • Group Buttons
            • Html Area
            • Input Group
            • Rating
            • Slider
            • Switch
            • Spinner
            • TextArea
            • Textbox
            • TextBoxGroup
            • Type Ahead
            • select2tokenizer
          • Media
            • Carousel
            • Embedded YouTube
            • File upload
            • Image label
            • Lightbox Gallery
            • MultiFile Upload
            • PDF JS Viewer
            • PDF Viewer
          • Mobile
            • Native Data List
            • Native Select
          • Navigation
            • Breadcrumbs
            • Navbar
            • sidenav
          • Visualization
            • DBTreeview
            • Progress Bar
            • Treeview
            • ChartJS
              • Data Labels Plugin
              • Funnel Chart
              • OutLabels Plugin
              • TreeMap
          • Specialized Components
            • Smart Document Editor
            • Servoy PDF Viewer
            • Fullcalendar Component
              • Fullcalendar
              • Fullcalendar Events
              • Migrating calendar from Smart and Web client to NG client
            • Fullcalendar Component 2
            • Canvas
            • Google Charts
            • Google Maps
            • svySignature
            • svywebcam
        • Styling and Themes
          • Default Theme Properties
          • CSS / LESS
          • Component Variants
          • Font Icons
        • Data Modeling
          • Databases
            • Tables
              • Columns
              • Calculations
              • Aggregations
              • Methods
              • Events / Triggers
              • Table security
            • Views
            • Procedures
          • Relations
          • Value Lists
          • Menus
          • In-Memory Databases
          • View Datasource
        • Modular Design
      • Programming Guide
        • Scripting the UI
          • Scripting Forms
          • Interacting with Components
          • Navigation
          • Windows, Dialogs and Popups
          • Events Manager
        • Working with Data
          • Concepts
          • Loading
          • Sorting
          • Iterating
          • Searching
            • Find mode
            • Query Builder
            • SQL String
          • Filtering
          • Editing
          • Validation
        • Automation and Scheduling
          • Batch Processor
          • Headless API
          • Scheduler API
        • Creating REST APIs
        • Consuming Webservices
        • Working with Files
          • File Plugin Basics
          • Images
          • Excel
          • PDF
          • JSON
        • Browser Utilities
          • Notifications
            • Web Notifications (Toastr)
            • Web Notifications (Native)
            • Block UI
          • Session Management
          • Keyboard Utilities
          • NG Utils
        • Sending and Receiving Email
        • Servoy Jasper Reports
          • Input Type
          • Display Mode
          • Output format
          • Jaspe Reports Viewer
        • Extensions
          • Modules
            • svyPhonegap
              • First Use Guide
              • Barcode Scanner
              • Browser
              • Camera
              • File
              • Fingerprint
              • Location
              • Network Interface
              • Phonegap
              • Printer
              • Push Notifications
            • svyAPI
              • Getting Started
            • svyLookup
              • Custom Templates
              • API Documentation
              • svyLookup v1
                • API Documentation v1.0.0
                • Base Form svyLookupTable v1.0.0
                • Base Form AbstractLookup v1.0.0
            • svyNavigation
              • API Documentation
                • API svyNavigation
                • API svyNavigationHistory
                • API svyNavigationUX
            • svyPopupFilter
              • Simple Filter Pickers
              • Custom Templates
              • API Documentation
                • API svyToolbarFilter
                • API svyPopupFilter
              • API Documentation v1
                • API svyToolbarFilter v1
                • API svyPopupFilter v1
            • svySearch
            • svySecurity
              • Overview
              • Token-based Auth and SSO (NEW!)
              • API Documentation
              • Getting Started
              • Tenant replication
              • Security Management Console
                • Classic Security Management Console
              • svySecurityUX
              • svyProperties
              • API Doc svyProperties
            • svyUtils
              • Log Manager
              • Log Manager Appenders
              • Smart Doc Editor Utils
              • Custom Dialogs
              • Excel Utils
                • Full API Reference
              • Crypto Utils
      • Security
        • Authentication
        • Permissions
          • UI Permissions
          • Data Permissions
          • Runtime Permissions
        • Audit Logging
        • OAuth
        • JWT
      • Multi-Language Support
      • Mobile Development
        • Getting Started
        • Mobile Design
        • Native Mobile Integrations
        • Building a Native Binary for the App Store
      • Native Desktop Development
        • NGDesktop UI plugin
        • NGDesktop Utils
        • NGDesktop File Plugin
    • Deploy
      • WAR Deployment
      • Docker Deployment
      • Server Configuration
        • Server Settings
        • Server Plugins
        • Database Servers
          • Locks
          • Transactions
          • Oracle
          • SQLServer
        • Client Sessions
        • Batch Processors
        • License Management
        • Monitoring
          • Server Log
          • Browser Console Log
          • Websocket Log
          • Query Performance
          • Client Performance
          • Client Event Tracing
          • Monitoring Servoy with JMX
      • NGClient deployment
      • Troubleshooting
      • Other Topics
        • Security: Cross-site Scripting
        • Running in an iFrame
    • Extend
    • Contribute
  • Reference
    • Servoy Core
      • Object Model
        • Database Server
          • Table
            • Column
            • Calculation
            • Method
            • Aggregation
          • View
          • Procedure
        • Solution
          • Form
          • Form Component
          • Relation
          • Relation Item
          • Table Node
          • Value List
          • Menu
          • Menu item
          • In-Memory Data Source
          • View Foundset Data Source
          • Variable
          • Column Info
          • Media
          • Layout Container
          • Method
        • i18n Message Key
      • Developer API
        • Globals
        • Forms
          • RuntimeForm
            • controller
            • containers
              • RuntimeContainer
            • elements
              • Component
              • RuntimeAccordionPanel
              • RuntimeBean
              • RuntimeButton
              • RuntimeCalendar
              • RuntimeCheck
              • RuntimeCombobox
              • RuntimeComponent
              • RuntimeDataButton
              • RuntimeDataLabel
              • RuntimeGroup
              • RuntimeHtmlArea
              • RuntimeImageMedia
              • RuntimeInsetList
              • RuntimeLabel
              • RuntimeListBox
              • RuntimePassword
              • RuntimePortal
              • RuntimeRadio
              • RuntimeChecks
              • RuntimeRadios
              • RuntimeRectangle
              • RuntimeRtfArea
              • RuntimeSpinner
              • RuntimeSplitPane
              • RuntimeTabPanel
              • RuntimeTextArea
              • RuntimeTextField
              • RuntimeWebComponent
        • JS Lib
          • Array
          • BigInt
          • Boolean
          • Date
          • Function
          • IterableValue
          • Iterator
          • JSON
          • Map
          • Set
          • Math
          • Namespace
          • Number
          • Object
          • Promise
          • QName
          • RegExp
          • Special Operators
          • Statements
          • String
          • XML
          • XMLList
        • Application
          • APPLICATION_TYPES
          • CLIENTDESIGN
          • DRAGNDROP
          • ELEMENT_TYPES
          • LOGGINGLEVEL
          • NGCONSTANTS
          • UICONSTANTS
          • CSSPosition
          • JSDimension
          • JSDNDEvent
          • JSEvent
          • JSLogger
          • JSLogBuilder
          • JSPoint
          • JSUpload
          • JSWindow
          • JSBounds
          • Renderable
          • UUID
        • SolutionModel
          • ALIGNMENT
          • ANCHOR
          • BEVELTYPE
          • CURSOR
          • DEFAULTS
          • FONTSTYLE
          • MEDIAOPTION
          • PAGEORIENTATION
          • PRINTSLIDING
          • SCROLLBAR
          • TITLEJUSTIFICATION
          • TITLEPOSITION
          • UNITS
          • JSBean
          • JSButton
          • JSCalculation
          • JSComponent
          • JSDataSourceNode
          • JSField
          • JSForm
          • JSLabel
          • JSMedia
          • JSMethod
          • JSPart
          • JSPortal
          • JSRelation
          • JSRelationItem
          • JSStyle
          • JSTab
          • JSTabPanel
          • JSValueList
          • JSVariable
          • JSTitle
          • JSChecks
          • JSCombobox
          • JSHeader
          • JSInsetList
          • JSList
          • JSPassword
          • JSRadios
          • JSText
          • JSTextArea
          • JSWebComponent
          • JSLayoutContainer
        • Database Manager
          • QUERY_COLUMN_TYPES
          • SQL_ACTION_TYPES
          • JSColumn
          • JSDataSet
          • JSBaseRecord
          • JSBaseSqlRecord
          • JSBaseFoundset
          • JSBaseSQLFoundset
          • JSFoundSet
          • JSFoundSetUpdater
          • JSRecord
          • JSRecordMarker
          • JSRecordMarkers
          • JSTable
          • JSTableFilter
          • MenuFoundSet
          • MenuItemRecord
          • QBAggregate
          • QBAggregates
          • QBCase
          • QBCaseWhen
          • QBColumn
          • QBColumns
          • QBCondition
          • QBFunction
          • QBFunctions
          • QBGroupBy
          • QBJoin
          • QBJoins
          • QBLogicalCondition
          • QBParameter
          • QBParameters
          • QBPart
          • QBResult
          • QBSearchedCaseExpression
          • QBSelect
          • QBSort
          • QBSorts
          • QBTableClause
          • QBWhereCondition
          • ViewFoundSet
          • ViewRecord
        • Events Manager
          • EVENTS_AGGREGATION_TYPES
          • EventType
        • Menus
          • JSMenu
          • JSMenuItem
        • JSMenuDatasource
        • Utils
        • Client Utils
          • JSBlobLoaderBuilder
        • History
        • Security
        • i18n
        • ServoyException
          • DataException
        • JSUnit
        • Datasources
          • DBDataSource
          • DBDataSourceServer
          • JSConnectionDefinition
          • JSDataSource
          • MemDataSource
          • MenuDataSource
          • SPDataSource
          • SPDataSourceServer
          • ViewDataSource
        • JSViewDatasource
        • servoyDeveloper
        • enum
    • Extensions
      • UI Components
        • Buttons and Text
          • Badge
          • Button
          • Data Label
          • Drop Down
          • Image
          • Label
        • Form Containers
          • Accordion Panel
          • Collapse
          • Form Container
          • Form Component Container
          • List Form Component
          • Default Loading Indicator
          • Error Bean
          • Portal
          • Responsive Container
          • Servoy Default Navigator
          • Slider
          • Split Pane
          • TabPanel
        • Grids
          • Data Grid
          • Power Grid
          • Table
        • Input Controls
          • Calendar
          • Calendar Inline
          • Checkbox
          • Choice Group
          • Combobox
          • Floatinglabel Calendar
          • Floatinglabel Combobox
          • Floatinglabel Textarea
          • Floatinglabel Textbox
          • Floatinglabel Type Ahead
          • Group Buttons
          • Html Area
          • Input Group
          • Rating
          • Select2tokenizer
          • Slider
          • Spinner
          • Switch
          • TextArea
          • TextBox
          • TextBox Group
          • Type Ahead
        • Media
          • Carousel
          • Embedded YouTube
          • File upload
          • Image label
          • Lightbox Gallery
          • MultiFile Upload
          • PDF JS Viewer
          • PDF Viewer
        • Mobile
          • Native Data List
          • Native Select
        • Navigation
          • Breadcrumbs
          • Navbar
          • sidenav
        • SmartDocEditor
          • Smart Document Editor
        • Visualization
          • Canvas
          • Chart
          • Custom List
          • DBTreeview
          • Foundset List
          • Fullcalendar
          • Gauge
          • Google Maps
          • Kanban
          • Progress Bar
          • Treeview
      • Server Plugins
        • amortization
          • AmortizationCalculation
          • Polynomial
        • clientmanager
          • Broadcaster
          • JSClientInformation (cm)
        • excelxport
        • file
          • JSFile
          • JSProgressMonitor
        • headlessclient
          • JSClient
        • http
          • HTTP_STATUS
          • Cookie
          • DeleteRequest
          • GetRequest
          • HeadRequest
          • HttpClient
          • HttpClientConfig
          • OptionsRequest
          • PostRequest
          • PutRequest
          • Response
          • TraceRequest
          • PatchRequest
          • JSFileUpload
        • images
          • JSImage
        • jwt
          • Algorithm
          • Builder
          • JWTClaims
        • mail
          • Attachment
          • MailMessage
        • maintenance
          • JSClientInformation
          • JSColumnObject
          • JSServer
          • JSTableObject
        • mobileservice
          • OfflineDataDescription
        • oauth
          • ClientAuthentication
          • CustomApiBuilder
          • OAuthProviders
          • OAuthRequest
          • OAuthResponse
          • OAuthResponseBinary
          • OAuthResponseJSON
          • OAuthResponseText
          • OAuthService
          • OAuthServiceBuilder
          • OAuthTokenExtractors
          • RequestType
        • pdf_output
        • rawSQL
        • RestWs plugin
        • rest_ws
          • WsContents
          • WsCookie
          • WsRequest
          • WsResponse
        • scheduler
        • serialize
        • textxport
          • DataProviderExport
          • TabExporter
        • udp
          • JSPacket
        • XmlReader
          • XmlNode
      • Browser Plugins
        • Block UI
        • Block UI (ref)
        • Dialogs Plugin
        • Idle
        • Idle (ref)
        • Key Listener
        • Key Listener (ref)
        • NGDesktop File
        • NGDesktop File (ref)
        • NGDesktop UI (ref)
        • NGDesktop Utils (ref)
        • NG Utils (ref)
        • Office Javascript API for Servoy
        • Phonegap
        • Web Notifications (Native)
        • Web Notifications (Toastr)
        • Window Plugin
        • Font Awesome
      • Modules
        • Smart Doc Editor Utils
        • svyAPI
          • Getting Started
        • svyLookup
          • Custom Templates
          • API Documentation
          • svyLookup v1
            • API Documentation v1.0.0
            • Base Form svyLookupTable v1.0.0
            • Base Form AbstractLookup v1.0.0
        • svyLookupExample
        • svyNavigation
          • API Documentation
            • API svyNavigation
            • API svyNavigationHistory
            • API svyNavigationUX
        • svyNavigationUX
        • svyNavigationUXSample
        • svyPopupFilter
          • Simple Filter Pickers
          • Custom Templates
          • API Documentation
            • API svyToolbarFilter
            • API svyPopupFilter
          • API Documentation v1
            • API svyToolbarFilter v1
            • API svyPopupFilter v1
        • svyProperties
        • svySearch
        • svySecurity
          • Overview
          • Token-based Auth and SSO (NEW!)
          • API Documentation
          • Getting Started
          • Tenant replication
          • Security Management Console
            • Classic Security Management Console
          • svySecurityUX
          • svyProperties
          • API Doc svyProperties
        • svySecurityConsole
        • svySecurityUX
        • svyUtils
          • Log Manager
          • Log Manager Appenders
          • Smart Doc Editor Utils
          • Custom Dialogs
          • Excel Utils
          • Full API Reference
          • Crypto Utils
        • svyUtils$Excel
        • svyUtils$NGClient
        • svyUtils$customDialogs
        • svyUtils$logManagerAppenders
        • svyUtils$tableGrid
      • Layout
        • Boostrap 12grid layout
          • Collapsible Container
          • Simple Collapsible
          • Center Container
          • Inline Group Container
          • Flexbox Layout
      • Solutions
        • Sample Application
          • Tutorial Part 1
          • Tutorial Part 2
      • Packages
        • UI Component Packages
          • Advanced Renderers
          • Bootstrap Components
          • Bootstrap Extra Components
          • Canvas
          • Chart JS
          • Fullcalendar Component
          • googlemaps
          • kanban
          • Servoy Core
          • Servoy Extra Components
          • Servoy NG-Grids
          • Servoy PDF Viewer
          • smartDocumentEditor
        • Browser Plugin Packages
          • Block UI
          • Core NG only Services
          • Key Listener
          • NGDesktop File
          • NGDesktop UI
          • NGDesktop Utils
          • Web Notifications
          • Idle Web Service
    • Servoy Developer
      • Menu
        • File
        • Edit
        • Source
        • Refactor
        • Navigate
        • Search
        • Project
        • Actions
        • Run
        • Window
        • Help
      • Toolbar
      • Solution Explorer
        • Resources
          • Database Servers
            • Database Server
              • Procedures
              • Tables
              • Views
          • Security
          • i18n
        • All Solutions
          • Solution
          • Active Solution
            • Scopes
              • Scope
                • Variables
            • Forms
              • Working Set
              • Form
                • Controller
                • Variables
                • Elements
                • Relations
            • Form Components
              • Form Component
            • Relations
              • Relation
            • ValueLists
              • ValueList
            • Menus
              • Menu
                • MenuItem
            • Media
              • Folder
              • File
            • DataSources
              • In Memory DataSources
                • In Memory DataSource
              • View Foundsets DataSources
                • View Foundset DataSources
            • Servoy Packages
              • Package
            • Modules
              • Module
        • Solution Explorer Contextual List
      • Views
        • Command Console
        • Console
        • Problems
        • Tasks
        • Bookmarks
        • Search
        • Form Hierarchy
        • Help
        • JUnit
        • Outline
        • Profiler
        • Properties
        • Project Explorer
        • Call Hierarchy
      • Editors and Wizards
        • Property configurator for columns
        • Relation Editor
        • Text Format Editor
        • Date Format Editor
        • Number Format Editor
        • Database Synchronization Wizard
        • Security Editor
        • SQL Editor
        • i18n Editor
        • File Import Wizard
        • File Export Wizard
        • WAR Export Wizard
        • NGDesktop Export Wizard
        • Table Editor
        • Metadata Synchronization Wizard
        • Database Server Connection Editor
        • Text Property Editor
        • Valuelist Editor
        • Form Editor
          • Parts of the Form Editor
          • Designing a Form
          • Layout Tools
          • Using Containers
          • Creating and Using Forms
          • Using Servoy Beans
          • Using Shapes
          • Form Editor Subtabs
          • [Tips and Shortcuts][reference/servoy-developer/object-editors/form-editor-tips_and_shortcuts.md]
          • Editong a Responsive LayoutForm
          • CSS Positioning
        • Form Hierarchy
        • Component Properties Editor
        • Variable Editor
        • Method Selection Wizard
        • New Solution Wizard
        • Application Event Types Editor
        • New Form Wizard
        • Form Dataproviders Configurator
        • Servoy Resource Locator
        • Datasource Selection Wizard
        • Sorting Fields Wizard
        • Scripting Editor
          • Getting Started-Overview of Script Editor
          • Code Writing Features
          • Code Navigation
          • Code Rewriting Tools
          • Refactoring
          • Code Formatting
          • Script Editor Tips and Shortcuts
          • Unit Tests
        • Theme Editor
          • General Properties
          • Sidenav Properties
          • Navbar Properties
          • Tabs Properties
          • Windows Properties
          • Dialogs Properties
          • Tables Properties
          • Breadcrumb specific style Properties
          • Brand colors Properties
          • Validations Properties
          • Margins and Padding Properties
        • Editor Selection
        • Run Configurations
        • Debug Configurations
        • Externalize Strings Wizard
        • Font Chooser Wizard
        • Color Chooser Wizard
        • Project Properties Configurator
        • Move Wizard
        • External Tools Configurations
        • About Servoy Developer
        • Servoy Developer Installation Details
        • Eclipse Marketplace Wizard
        • Install Available Software Wizard
        • Cheat Sheet Selection Wizard
        • Servoy Developer Help Wizard
        • Switch to Editor Wizard
        • Find Actions Wizard
        • Customize Perspective Configurator
        • Quick Search Wizard
        • Search Wizard
        • Encoding Wizard
        • Task Wizard
        • Find - Replace Wizard
        • Properties Editor
        • New Project Wizard
        • New Method Wizard
        • New Menu Wizard
          • New MenuItem Wizard
        • Menu Editor
        • ServoyMenu Selection Wizard
        • JSMenu compatible component selector
        • Permissions Configuration Dialog
      • Project File Structure
        • Servoy Installation Directory
          • servoy.properties
        • Workspace Folder
          • Resources Directory
            • Database Information (.dbi) Files
          • Solution Folder
      • Package Manager
      • Preferences
      • Property Types for components / services
      • Debugger
        • Debug Explorer
        • Breakpoints
          • Breakpoint Properties
        • Variables
        • Expressions
        • Interactive Console
    • Application Server
    • Servoy Cloud
      • Cloud Control Center
        • Home
          • Setup Namespace
          • User profile
            • My Profile
            • Support
        • Download IDE
        • Application Overview
          • Applications
            • Pipelines
              • Jobs
                • Packages
                  • Commits
                  • Artifacts
                  • Configuration
                  • Quality reports
                  • Build markers
                • Job Configuration
                  • Build and Deploy or Build
                  • Mobile
                  • Desktop
            • Environments
              • Metrics
                • Users
                • Databases
                  • Metrics
                • System Health
                • Log Activity
                • App performance
                • Query performance
              • Cloud reporting
            • Security
              • Permissions
              • Tenants
            • Reports
            • Security Login Designer
              • Single Sign-On
                • Sign in with Google
                • Sign in with Microsoft
          • Code Repositories
        • Project Management
          • Tickets
          • Backlog
          • Active Sprints
        • User Management
          • Users
          • Roles
        • Administration
          • Security
            • ServoyCloud Roles
          • Credentials
          • Settings
        • Add-Ons
      • Database Backup
      • E2E Cypress Testing
        • Using Cypress
      • On-Premise Deployment
      • Privacy policy (ServoyAI)
      • FAQ
      • Migrate to Servoy Cloud
    • Extensions Developement
      • Component and Services
        • Component Development
        • Service Development
        • Tools and Dev Tips to use for Component/Service developement
        • Manifest (.mf file)
        • Specification (.spec file)
          • Property Types
            • Array property types
            • Custom object property types
            • Findmode property type
            • Foundset property type
            • Tags
        • Directives And Filters
          • Sablotabsequence
        • Console (serverside)
        • ServoyApi (serverside)
      • Serverside Plugins
        • Data Convertors and Validators
        • UI Convertors
  • Release notes
    • Release notes
      • 2025.03
      • 2024.03 (LTS)
      • 2023.03 (LTS)
      • 2025.03 (Servoy Cloud)
      • 2024.12
      • 2024.12 (Servoy Cloud)
      • 2024.09
      • 2024.09 (Servoy Cloud)
      • 2024.06
      • 2024.06 (Servoy Cloud)
      • 2024.03 (Servoy Cloud)
      • 2023.12
      • 2023.12 (Servoy Cloud)
      • 2023.09
      • 2023.09 (Servoy Cloud)
      • 2023.06
      • 2022.03 (LTS)
      • 2022.12 What's new
      • 2022.12
      • 2022.09 What's new
      • 2022.09
      • 2022.06 What's new
      • 2022.06
      • 2021.03.3 (LTS)
Powered by GitBook
On this page
  • Overview
  • Properties Summarized
  • Methods Summarized
  • Properties Detailed
  • [index]
  • length
  • Methods Detailed
  • concat(value1)
  • concat(value1, value2)
  • concat(value1, value2, valueN)
  • copyWithin(target)
  • copyWithin(target, start)
  • copyWithin(target, start, end)
  • every(callback)
  • every(callback, thisObject)
  • fill(value)
  • fill(value, start)
  • fill(value, start, end)
  • filter(callback)
  • filter(callback, thisObject)
  • find(callback)
  • findIndex(callback)
  • forEach(callback)
  • forEach(callback, thisObject)
  • from(value)
  • from(value, mapFunction, thisObject)
  • includes(searchElement)
  • includes(searchElement, start)
  • indexOf(searchElement)
  • indexOf(searchElement, fromIndex)
  • isArray(obj)
  • join(delimiter)
  • lastIndexOf(searchElement)
  • lastIndexOf(searchElement, fromIndex)
  • map(callback)
  • map(callback, thisObject)
  • of(value)
  • pop()
  • push(value1)
  • push(value1, value2)
  • push(value1, value2, valueN)
  • reduce(f, initialValue)
  • reverse()
  • shift()
  • slice(begin)
  • slice(begin, end)
  • some(callback)
  • some(callback, thisObject)
  • sort()
  • sort(function)
  • splice(arrayIndex, length)
  • splice(arrayIndex, length, value1)
  • splice(arrayIndex, length, value1, value2)
  • splice(arrayIndex, length, value1, value2, valueN)
  • unshift(value1, value2, valueN)

Was this helpful?

  1. Reference
  2. Servoy Core
  3. Developer API
  4. JS Lib

Array

PreviousJS LibNextBigInt

Last updated 2 months ago

Was this helpful?

Overview

The javascript Array implementation. It is a collection of items kept by index, providing typical array API. The index is a integer (>= 0) or a string representing such an integer.

For more information see: .

Properties Summarized

Type
Name
Summary

Get an element by index.

Get the length of the array.

Methods Summarized

Type
Name
Summary

Returns a new array comprised of this array joined with other array(s) and/or value(s).

Returns a new array comprised of this array joined with other array(s) and/or value(s).

Returns a new array comprised of this array joined with other array(s) and/or value(s).

Shallow copies part of an array to another location in the same array and returns it without modifying its length

Shallow copies part of an array to another location in the same array and returns it without modifying its length

Shallow copies part of an array to another location in the same array and returns it without modifying its length

Runs a function on items in the array while that function is returning true.

Runs a function on items in the array while that function is returning true.

Changes all elements in an array to a static value, from a start index (default 0) to an end index (default array.

Changes all elements in an array to a static value, from a start index (default 0) to an end index (default array.

Changes all elements in an array to a static value, from a start index (default 0) to an end index (default array.

Runs a function on every item in the array and returns an array of all items for which the function returns true.

Runs a function on every item in the array and returns an array of all items for which the function returns true.

Returns the value of the first element in the provided array that satisfies the provided testing function.

Returns the index of the first element in the provided array which satisfies the provided testing function.

void

Runs a function (callback) on every item in the array.

void

Runs a function (callback) on every item in the array.

Creates a new, shallow-copied Array instance from an iterable or array-like object.

Creates a new, shallow-copied Array instance from an iterable or array-like object.

Determines whether an array includes a certain value among its entries, returning true or false as appropriate.

Determines whether an array includes a certain value among its entries, returning true or false as appropriate.

Returns the first index at which a given element can be found in the array, or -1 if it is not present.

Returns the first index at which a given element can be found in the array, or -1 if it is not present.

Checks whether an object is an array or not.

Puts all elements in the array into a string, separating each element with the specified delimiter

Returns the last index at which a given element can be found in the array, or -1 if it is not present.

Returns the last index at which a given element can be found in the array, or -1 if it is not present.

Runs a function on every item in the array and returns the results in an array.

Runs a function on every item in the array and returns the results in an array.

Ccreates a new Array instance from a variable number of arguments.

Pops the last string off the array and returns it.

Mutates an array by appending the given elements and returning the new length of the array.

Mutates an array by appending the given elements and returning the new length of the array.

Mutates an array by appending the given elements and returning the new length of the array.

Reduces the array to a single value by executing a provided function for each value of the array (from left-to-right).

Puts array elements in reverse order.

Decreases array element size by one by shifting the first element off the array and returning it.

The slice method creates a new array from a selected section of an array.

The slice method creates a new array from a selected section of an array.

Runs a function on items in the array while that function returns false.

Runs a function on items in the array while that function returns false.

Sorts the array elements in dictionary order or using a compare function passed to the method.

Sorts the array elements in dictionary order or using a compare function passed to the method.

It is used to take elements out of an array and replace them with those specified.

It is used to take elements out of an array and replace them with those specified.

It is used to take elements out of an array and replace them with those specified.

It is used to take elements out of an array and replace them with those specified.

Places element data at the start of an array.

Properties Detailed

[index]

Get an element by index.

Sample

array[0]

length

Get the length of the array.

Sample

array.length

Methods Detailed

concat(value1)

Returns a new array comprised of this array joined with other array(s) and/or value(s).

Parameters

Sample

array.concat();

concat(value1, value2)

Returns a new array comprised of this array joined with other array(s) and/or value(s).

Parameters

Sample

array.concat();

concat(value1, value2, valueN)

Returns a new array comprised of this array joined with other array(s) and/or value(s).

Parameters

Sample

array.concat();

copyWithin(target)

Shallow copies part of an array to another location in the same array and returns it without modifying its length

Parameters

Sample

array.copyWithin(2);

copyWithin(target, start)

Shallow copies part of an array to another location in the same array and returns it without modifying its length

Parameters

Sample

array.copyWithin(2);

copyWithin(target, start, end)

Shallow copies part of an array to another location in the same array and returns it without modifying its length

Parameters

Sample

array.copyWithin(2);

every(callback)

Runs a function on items in the array while that function is returning true. It returns true if the function returns true for every item it could visit. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Sample

function isNumber(value) { return typeof value == 'number'; }
var a1 = [1, 2, 3];
application.output(a1.every(isNumber));
var a2 = [1, '2', 3];
application.output(a2.every(isNumber));

every(callback, thisObject)

Runs a function on items in the array while that function is returning true. It returns true if the function returns true for every item it could visit. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Sample

function isNumber(value) { return typeof value == 'number'; }
var a1 = [1, 2, 3];
application.output(a1.every(isNumber));
var a2 = [1, '2', 3];
application.output(a2.every(isNumber));

fill(value)

Changes all elements in an array to a static value, from a start index (default 0) to an end index (default array.length). It returns the modified array.

Parameters

Sample

array.fill('test');

fill(value, start)

Changes all elements in an array to a static value, from a start index (default 0) to an end index (default array.length). It returns the modified array.

Parameters

Sample

array.fill('test');

fill(value, start, end)

Changes all elements in an array to a static value, from a start index (default 0) to an end index (default array.length). It returns the modified array.

Parameters

Sample

array.fill('test');

filter(callback)

Runs a function on every item in the array and returns an array of all items for which the function returns true. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Sample

var a1 = ['a', 10, 'b', 20, 'c', 30];
var a2 = a1.filter(function(item) { return typeof item == 'number'; });
application.output(a2);

filter(callback, thisObject)

Runs a function on every item in the array and returns an array of all items for which the function returns true. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Sample

var a1 = ['a', 10, 'b', 20, 'c', 30];
var a2 = a1.filter(function(item) { return typeof item == 'number'; });
application.output(a2);

find(callback)

Returns the value of the first element in the provided array that satisfies the provided testing function. If no values satisfy the testing function, undefined is returned. The callback function can invoked with three arguments: the element value, the element index(optional), the array being traversed (optional).

Parameters

Sample

var array1 = [5, 12, 8, 130, 44];
 var found = array1.find(function(element) { return element > 10});
 application.output(found); // prints 12

findIndex(callback)

Returns the index of the first element in the provided array which satisfies the provided testing function. If no values satisfy the testing function, -1 is returned. The callback function can invoked with three arguments: the element value, the element index (optional), the array being traversed (optional).

Parameters

Sample

var array1 = [5, 12, 8, 130, 44];
 var found = array1.findIndex(function(element) { return element > 10});
 application.output(found); // prints 1

forEach(callback)

Runs a function (callback) on every item in the array. The callback function is invoked only for indexes of the array which have assigned values. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Returns: void

Sample

function printThemOut(element, index, array) {
		application.output("a[" + index + "] = " + element);
}
var a = ['a', 'b', 'c'];
a.forEach(printThemOut);

forEach(callback, thisObject)

Runs a function (callback) on every item in the array. The callback function is invoked only for indexes of the array which have assigned values. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Returns: void

Sample

function printThemOut(element, index, array) {
		application.output("a[" + index + "] = " + element);
}
var a = ['a', 'b', 'c'];
a.forEach(printThemOut);

from(value)

Creates a new, shallow-copied Array instance from an iterable or array-like object.

Parameters

Sample

var a = Array.from([1, 2, 3]);

from(value, mapFunction, thisObject)

Creates a new, shallow-copied Array instance from an iterable or array-like object.

Parameters

Sample

var a = Array.from([1, 2, 3]);

includes(searchElement)

Determines whether an array includes a certain value among its entries, returning true or false as appropriate.

Parameters

Sample

array.includes('test');

includes(searchElement, start)

Determines whether an array includes a certain value among its entries, returning true or false as appropriate.

Parameters

Sample

array.includes('test');

indexOf(searchElement)

Returns the first index at which a given element can be found in the array, or -1 if it is not present.

Parameters

Sample

var a = ['a', 'b', 'a', 'b', 'a'];
application.output(a.indexOf('b'));
application.output(a.indexOf('b', 2));
application.output(a.indexOf('z'));

indexOf(searchElement, fromIndex)

Returns the first index at which a given element can be found in the array, or -1 if it is not present.

Parameters

Sample

var a = ['a', 'b', 'a', 'b', 'a'];
application.output(a.indexOf('b'));
application.output(a.indexOf('b', 2));
application.output(a.indexOf('z'));

isArray(obj)

Checks whether an object is an array or not.

Parameters

Sample

var a = [1, 2, 3];
application.output(Array.isArray(a)); //prints true
application.output(Array.isArray(23)); //prints false

join(delimiter)

Puts all elements in the array into a string, separating each element with the specified delimiter

Parameters

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
var jwords = words.join(";");

lastIndexOf(searchElement)

Returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex.

Parameters

Sample

var a = ['a', 'b', 'c', 'd', 'a', 'b'];
application.output(a.lastIndexOf('b'));
application.output(a.lastIndexOf('b', 4));
application.output(a.lastIndexOf('z'));

lastIndexOf(searchElement, fromIndex)

Returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex.

Parameters

Sample

var a = ['a', 'b', 'c', 'd', 'a', 'b'];
application.output(a.lastIndexOf('b'));
application.output(a.lastIndexOf('b', 4));
application.output(a.lastIndexOf('z'));

map(callback)

Runs a function on every item in the array and returns the results in an array. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Sample

var a = ['a', 'b', 'c'];
var a2 = a.map(function(item) { return item.toUpperCase(); });
application.output(a2);

map(callback, thisObject)

Runs a function on every item in the array and returns the results in an array. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Sample

var a = ['a', 'b', 'c'];
var a2 = a.map(function(item) { return item.toUpperCase(); });
application.output(a2);

of(value)

Ccreates a new Array instance from a variable number of arguments.

Parameters

Sample

var a = Array.of(1, 2, 3);

pop()

Pops the last string off the array and returns it.

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
var lastword = words.pop();

push(value1)

Mutates an array by appending the given elements and returning the new length of the array.

Parameters

Sample

var words = new Array("limit","lines","finish","complete");
words.push("In","Out");

push(value1, value2)

Mutates an array by appending the given elements and returning the new length of the array.

Parameters

Sample

var words = new Array("limit","lines","finish","complete");
words.push("In","Out");

push(value1, value2, valueN)

Mutates an array by appending the given elements and returning the new length of the array.

Parameters

Sample

var words = new Array("limit","lines","finish","complete");
words.push("In","Out");

reduce(f, initialValue)

Reduces the array to a single value by executing a provided function for each value of the array (from left-to-right).

Parameters

Sample

var euros = [29.76, 41.85, 46.5];
var sum = euros.reduce( function(total, amount) {
  return total + amount
});

reverse()

Puts array elements in reverse order.

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
words.reverse();

shift()

Decreases array element size by one by shifting the first element off the array and returning it.

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
words.shift();

slice(begin)

The slice method creates a new array from a selected section of an array.

Parameters

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.slice(3, 5);

slice(begin, end)

The slice method creates a new array from a selected section of an array.

Parameters

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.slice(3, 5);

some(callback)

Runs a function on items in the array while that function returns false. It returns true if the function returns true for any item it could visit. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Sample

function isNumber(value) { return typeof value == 'number'; }
var a1 = [1, 2, 3];
application.output(a1.some(isNumber));
var a2 = [1, '2', 3];
application.output(a2.some(isNumber));

some(callback, thisObject)

Runs a function on items in the array while that function returns false. It returns true if the function returns true for any item it could visit. The callback function is invoked with three arguments: the element value, the element index, the array being traversed.

Parameters

Sample

function isNumber(value) { return typeof value == 'number'; }
var a1 = [1, 2, 3];
application.output(a1.some(isNumber));
var a2 = [1, '2', 3];
application.output(a2.some(isNumber));

sort()

Sorts the array elements in dictionary order or using a compare function passed to the method.

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
words.sort();

sort(function)

Sorts the array elements in dictionary order or using a compare function passed to the method.

Parameters

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
words.sort();

splice(arrayIndex, length)

It is used to take elements out of an array and replace them with those specified.

Parameters

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");

splice(arrayIndex, length, value1)

It is used to take elements out of an array and replace them with those specified.

Parameters

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");

splice(arrayIndex, length, value1, value2)

It is used to take elements out of an array and replace them with those specified.

Parameters

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");

splice(arrayIndex, length, value1, value2, valueN)

It is used to take elements out of an array and replace them with those specified.

Parameters

Sample

var words = new Array("limit","lines","finish","complete","In","Out");
var nwords1 = words.splice(3, 2, "done", "On");

unshift(value1, value2, valueN)

Places element data at the start of an array.

Parameters

Sample

var words = new Array("finish","complete","In","Out");
words.unshift("limit","lines");

Type

Type

value1 ;

Returns:

value1 ;

value2 ;

Returns:

value1 ;

value2 ;

valueN ;

Returns:

target Zero-based index at which to copy the sequence to. If negative, target will be counted from the end.

Returns:

target Zero-based index at which to copy the sequence to. If negative, target will be counted from the end.

start Zero-based index at which to start copying elements from. If negative, start will be counted from the end. If start is omitted, copyWithin will copy from index 0.

Returns:

target Zero-based index at which to copy the sequence to. If negative, target will be counted from the end.

start Zero-based index at which to start copying elements from. If negative, start will be counted from the end. If start is omitted, copyWithin will copy from index 0.

end Zero-based index at which to end copying elements from. copyWithin copies up to but not including end. If negative, end will be counted from the end.

Returns:

callback ;

Returns:

callback ;

thisObject ;

Returns:

value Value to fill the array with.

Returns:

value Value to fill the array with.

start Zero-based index at which to start filling.

Returns:

value Value to fill the array with.

start Zero-based index at which to start filling.

end Zero-based index at which to end filling.

Returns:

callback ;

Returns:

callback ;

thisObject ;

Returns:

callback a testing function

Returns: the element which satisfies the function or undefined

callback a testing function

Returns: the index of the first element which satisfies the function or -1

callback ;

callback ;

thisObject ;

value An iterable or array-like object to convert to an array.

Returns:

value An iterable or array-like object to convert to an array.

mapFunction Map function to call on every element of the array. If provided, every value to be added to the array is first passed through this function, and mapFunction's return value is added to the array instead.

thisObject Value to use as this when executing mapFunction.

Returns:

searchElement The value to search for.

Returns:

searchElement The value to search for.

start Zero-based index at which to start searching.

Returns:

searchElement ;

Returns:

searchElement ;

fromIndex ;

Returns:

obj ;

Returns:

delimiter ;

Returns:

searchElement ;

Returns:

searchElement ;

fromIndex ;

Returns:

callback ;

Returns:

callback ;

thisObject ;

Returns:

value ;

Returns:

Returns:

value1 ;

Returns:

value1 ;

value2 ;

Returns:

value1 ;

value2 ;

valueN ;

Returns:

f Function to execute on each element in the array, taking four arguments: -accumulator: accumulates the callback's return values; it is the accumulated value previously returned in the last invocation of the callback, or initialValue, if supplied (see below). -currentValue: the current element being processed in the array. -currentIndex (Optional): the index of the current element being processed in the array (starts at index 0, if an initialValue is provided, and at index 1 otherwise) -array (Optional): the array reduce() was called upon.

initialValue Value to use as the first argument to the first call of the callback. If no initial value is supplied, the first element in the array will be used.

Returns: Object

Returns:

Returns:

begin ;

Returns:

begin ;

end ;

Returns:

callback ;

Returns:

callback ;

thisObject ;

Returns:

Returns:

function ;

Returns:

arrayIndex ;

length ;

Returns:

arrayIndex ;

length ;

value1 ;

Returns:

arrayIndex ;

length ;

value1 ;

value2 ;

Returns:

arrayIndex ;

length ;

value1 ;

value2 ;

valueN ;

Returns:

value1 ;

value2 ;

valueN ;

Returns:

Array (MDN)
Object
Number
Object
Array
Object
Object
Array
Object
Object
Object
Array
Number
Array
Number
Number
Array
Number
Number
Number
Array
Function
Boolean
Function
Array
Boolean
Object
Array
Object
Number
Array
Object
Number
Number
Array
Function
Array
Function
Array
Array
Function
Object
Function
Number
Function
Function
Object
Object
Array
Object
Function
Object
Array
Object
Boolean
Object
Number
Boolean
Object
Number
Object
Number
Number
Object
Boolean
String
String
Object
Number
Object
Number
Number
Object
Array
Object
Array
Array
Array
Array
Object
Object
Number
Object
Object
Number
Object
Object
Object
Number
Function
Object
Object
Array
Object
Object
Array
Object
Object
Array
Function
Boolean
Function
Array
Boolean
Array
Function
Array
Object
Object
Array
Object
Object
Object
Array
Object
Object
Object
Object
Array
Object
Object
Object
Object
Object
Array
Object
Object
Object
Number
Object
Number
Array
Array
Array
Array
Array
Array
Boolean
Boolean
Array
Array
Array
Array
Array
Object
Number
Array
Array
Boolean
Boolean
Number
Number
Boolean
String
Number
Number
Array
Array
Array
Object
Number
Number
Number
Object
Array
Object
Array
Array
Boolean
Boolean
Array
Array
Array
Array
Array
Array
Number
[index]
length
concat(value1)
concat(value1, value2)
concat(value1, value2, valueN)
copyWithin(target)
copyWithin(target, start)
copyWithin(target, start, end)
every(callback)
every(callback, thisObject)
fill(value)
fill(value, start)
fill(value, start, end)
filter(callback)
filter(callback, thisObject)
find(callback)
findIndex(callback)
forEach(callback)
forEach(callback, thisObject)
from(value)
from(value, mapFunction, thisObject)
includes(searchElement)
includes(searchElement, start)
indexOf(searchElement)
indexOf(searchElement, fromIndex)
isArray(obj)
join(delimiter)
lastIndexOf(searchElement)
lastIndexOf(searchElement, fromIndex)
map(callback)
map(callback, thisObject)
of(value)
pop()
push(value1)
push(value1, value2)
push(value1, value2, valueN)
reduce(f, initialValue)
reverse()
shift()
slice(begin)
slice(begin, end)
some(callback)
some(callback, thisObject)
sort()
sort(function)
splice(arrayIndex, length)
splice(arrayIndex, length, value1)
splice(arrayIndex, length, value1, value2)
splice(arrayIndex, length, value1, value2, valueN)
unshift(value1, value2, valueN)