NativeScript Docs
Core Modules
NativeScript Angular
NativeScript UI
Article title
view on GitHub
Search
Preparing search index...
The search index is not available
NativeScript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"js-libs/esprima"
Syntax
SomeStatementOrList
Interface SomeStatementOrList
Globals
"js-
libs/esprima"
Syntax
Some
Statement
OrList
Array
alternate
argument
block
body
cases
consequent
discriminant
each
expression
finalizer
guarded
Handlers
handler
init
label
leading
Comments
left
length
lexical
loc
object
range
right
test
trailing
Comments
type
update
__@iterator
__@unscopables
concat
copy
Within
entries
every
fill
filter
find
find
Index
for
Each
index
Of
join
keys
last
Index
Of
map
pop
push
reduce
reduce
Right
reverse
shift
slice
some
sort
splice
to
Locale
String
to
String
unshift
values
Hierarchy
Array
<
SomeStatement
>
SomeStatement
Indexable
[
n:
number
]:
SomeStatement
Index
Properties
Array
alternate
argument
block
body
cases
consequent
discriminant
each
expression
finalizer
guarded
Handlers
handler
init
label
leading
Comments
left
length
lexical
loc
object
range
right
test
trailing
Comments
type
update
Methods
__@iterator
__@unscopables
concat
copy
Within
entries
every
fill
filter
find
find
Index
for
Each
index
Of
join
keys
last
Index
Of
map
pop
push
reduce
reduce
Right
reverse
shift
slice
some
sort
splice
to
Locale
String
to
String
unshift
values
Properties
Array
Array
:
ArrayConstructor
alternate
alternate
:
SomeStatement
argument
argument
:
SomeExpression
block
block
:
BlockStatement
body
body
:
SomeStatementOrList
cases
cases
:
SwitchCase[]
consequent
consequent
:
SomeStatement
discriminant
discriminant
:
SomeExpression
each
each
:
boolean
expression
expression
:
SomeExpression
finalizer
finalizer
:
BlockStatement
guarded
Handlers
guarded
Handlers
:
CatchClause[]
handler
handler
:
CatchClause
init
init
:
VariableDeclaratorOrExpression
label
label
:
Identifier
Optional
leading
Comments
leading
Comments
:
Comment[]
left
left
:
VariableDeclaratorOrExpression
length
length
:
number
lexical
lexical
:
boolean
Optional
loc
loc
:
LineLocation
object
object
:
SomeExpression
Optional
range
range
:
number[]
right
right
:
SomeExpression
test
test
:
SomeExpression
Optional
trailing
Comments
trailing
Comments
:
Comment[]
type
type
:
string
update
update
:
SomeExpression
Methods
__@iterator
__@iterator
(
)
:
IterableIterator
<
SomeStatement
>
Returns
IterableIterator
<
SomeStatement
>
__@unscopables
__@unscopables
(
)
:
object
Returns
object
copy
Within
:
boolean
entries
:
boolean
fill
:
boolean
find
:
boolean
find
Index
:
boolean
keys
:
boolean
values
:
boolean
concat
concat
(
...
items
:
ConcatArray<SomeStatement>[]
)
:
SomeStatement[]
concat
(
...
items
:
(T | ConcatArray<T>)[]
)
:
SomeStatement[]
Parameters
Rest
...
items:
ConcatArray<SomeStatement>[]
Returns
SomeStatement[]
Parameters
Rest
...
items:
(T | ConcatArray<T>)[]
Returns
SomeStatement[]
copy
Within
copy
Within
(
target
:
number
, start
:
number
, end
?:
number
)
:
this
Parameters
target:
number
start:
number
Optional
end:
number
Returns
this
entries
entries
(
)
:
IterableIterator
<
[
number
,
SomeStatement
]
>
Returns
IterableIterator
<
[
number
,
SomeStatement
]
>
every
every
(
callbackfn
:
function
, thisArg
?:
any
)
:
boolean
Parameters
callbackfn:
function
(
value
:
SomeStatement
, index
:
number
, array
:
SomeStatement[]
)
:
boolean
Parameters
value:
SomeStatement
index:
number
array:
SomeStatement[]
Returns
boolean
Optional
thisArg:
any
Returns
boolean
fill
fill
(
value
:
SomeStatement
, start
?:
number
, end
?:
number
)
:
this
Parameters
value:
SomeStatement
Optional
start:
number
Optional
end:
number
Returns
this
filter
filter<S>
(
callbackfn
:
function
, thisArg
?:
any
)
:
S[]
filter
(
callbackfn
:
function
, thisArg
?:
any
)
:
SomeStatement[]
Type parameters
S
:
SomeStatement
Parameters
callbackfn:
function
(
value
:
SomeStatement
, index
:
number
, array
:
SomeStatement[]
)
:
boolean
Parameters
value:
SomeStatement
index:
number
array:
SomeStatement[]
Returns
boolean
Optional
thisArg:
any
Returns
S[]
Parameters
callbackfn:
function
(
value
:
SomeStatement
, index
:
number
, array
:
SomeStatement[]
)
:
any
Parameters
value:
SomeStatement
index:
number
array:
SomeStatement[]
Returns
any
Optional
thisArg:
any
Returns
SomeStatement[]
find
find<S>
(
predicate
:
function
, thisArg
?:
any
)
:
S
|
undefined
find
(
predicate
:
function
, thisArg
?:
any
)
:
SomeStatement
|
undefined
Type parameters
S
:
SomeStatement
Parameters
predicate:
function
(
this
:
void
, value
:
SomeStatement
, index
:
number
, obj
:
SomeStatement[]
)
:
boolean
Parameters
this:
void
value:
SomeStatement
index:
number
obj:
SomeStatement[]
Returns
boolean
Optional
thisArg:
any
Returns
S
|
undefined
Parameters
predicate:
function
(
value
:
SomeStatement
, index
:
number
, obj
:
SomeStatement[]
)
:
boolean
Parameters
value:
SomeStatement
index:
number
obj:
SomeStatement[]
Returns
boolean
Optional
thisArg:
any
Returns
SomeStatement
|
undefined
find
Index
find
Index
(
predicate
:
function
, thisArg
?:
any
)
:
number
Parameters
predicate:
function
(
value
:
SomeStatement
, index
:
number
, obj
:
SomeStatement[]
)
:
boolean
Parameters
value:
SomeStatement
index:
number
obj:
SomeStatement[]
Returns
boolean
Optional
thisArg:
any
Returns
number
for
Each
for
Each
(
callbackfn
:
function
, thisArg
?:
any
)
:
void
Parameters
callbackfn:
function
(
value
:
SomeStatement
, index
:
number
, array
:
SomeStatement[]
)
:
void
Parameters
value:
SomeStatement
index:
number
array:
SomeStatement[]
Returns
void
Optional
thisArg:
any
Returns
void
index
Of
index
Of
(
searchElement
:
SomeStatement
, fromIndex
?:
number
)
:
number
Parameters
searchElement:
SomeStatement
Optional
fromIndex:
number
Returns
number
join
join
(
separator
?:
string
)
:
string
Parameters
Optional
separator:
string
Returns
string
keys
keys
(
)
:
IterableIterator
<
number
>
Returns
IterableIterator
<
number
>
last
Index
Of
last
Index
Of
(
searchElement
:
SomeStatement
, fromIndex
?:
number
)
:
number
Parameters
searchElement:
SomeStatement
Optional
fromIndex:
number
Returns
number
map
map<U>
(
callbackfn
:
function
, thisArg
?:
any
)
:
U[]
Type parameters
U
Parameters
callbackfn:
function
(
value
:
SomeStatement
, index
:
number
, array
:
SomeStatement[]
)
:
U
Parameters
value:
SomeStatement
index:
number
array:
SomeStatement[]
Returns
U
Optional
thisArg:
any
Returns
U[]
pop
pop
(
)
:
SomeStatement
|
undefined
Returns
SomeStatement
|
undefined
push
push
(
...
items
:
SomeStatement[]
)
:
number
Parameters
Rest
...
items:
SomeStatement[]
Returns
number
reduce
reduce
(
callbackfn
:
function
)
:
SomeStatement
reduce
(
callbackfn
:
function
, initialValue
:
SomeStatement
)
:
SomeStatement
reduce<U>
(
callbackfn
:
function
, initialValue
:
U
)
:
U
Parameters
callbackfn:
function
(
previousValue
:
SomeStatement
, currentValue
:
SomeStatement
, currentIndex
:
number
, array
:
SomeStatement[]
)
:
SomeStatement
Parameters
previousValue:
SomeStatement
currentValue:
SomeStatement
currentIndex:
number
array:
SomeStatement[]
Returns
SomeStatement
Returns
SomeStatement
Parameters
callbackfn:
function
(
previousValue
:
SomeStatement
, currentValue
:
SomeStatement
, currentIndex
:
number
, array
:
SomeStatement[]
)
:
SomeStatement
Parameters
previousValue:
SomeStatement
currentValue:
SomeStatement
currentIndex:
number
array:
SomeStatement[]
Returns
SomeStatement
initialValue:
SomeStatement
Returns
SomeStatement
Type parameters
U
Parameters
callbackfn:
function
(
previousValue
:
U
, currentValue
:
SomeStatement
, currentIndex
:
number
, array
:
SomeStatement[]
)
:
U
Parameters
previousValue:
U
currentValue:
SomeStatement
currentIndex:
number
array:
SomeStatement[]
Returns
U
initialValue:
U
Returns
U
reduce
Right
reduce
Right
(
callbackfn
:
function
)
:
SomeStatement
reduce
Right
(
callbackfn
:
function
, initialValue
:
SomeStatement
)
:
SomeStatement
reduce
Right<U>
(
callbackfn
:
function
, initialValue
:
U
)
:
U
Parameters
callbackfn:
function
(
previousValue
:
SomeStatement
, currentValue
:
SomeStatement
, currentIndex
:
number
, array
:
SomeStatement[]
)
:
SomeStatement
Parameters
previousValue:
SomeStatement
currentValue:
SomeStatement
currentIndex:
number
array:
SomeStatement[]
Returns
SomeStatement
Returns
SomeStatement
Parameters
callbackfn:
function
(
previousValue
:
SomeStatement
, currentValue
:
SomeStatement
, currentIndex
:
number
, array
:
SomeStatement[]
)
:
SomeStatement
Parameters
previousValue:
SomeStatement
currentValue:
SomeStatement
currentIndex:
number
array:
SomeStatement[]
Returns
SomeStatement
initialValue:
SomeStatement
Returns
SomeStatement
Type parameters
U
Parameters
callbackfn:
function
(
previousValue
:
U
, currentValue
:
SomeStatement
, currentIndex
:
number
, array
:
SomeStatement[]
)
:
U
Parameters
previousValue:
U
currentValue:
SomeStatement
currentIndex:
number
array:
SomeStatement[]
Returns
U
initialValue:
U
Returns
U
reverse
reverse
(
)
:
SomeStatement[]
Returns
SomeStatement[]
shift
shift
(
)
:
SomeStatement
|
undefined
Returns
SomeStatement
|
undefined
slice
slice
(
start
?:
number
, end
?:
number
)
:
SomeStatement[]
Parameters
Optional
start:
number
Optional
end:
number
Returns
SomeStatement[]
some
some
(
callbackfn
:
function
, thisArg
?:
any
)
:
boolean
Parameters
callbackfn:
function
(
value
:
SomeStatement
, index
:
number
, array
:
SomeStatement[]
)
:
boolean
Parameters
value:
SomeStatement
index:
number
array:
SomeStatement[]
Returns
boolean
Optional
thisArg:
any
Returns
boolean
sort
sort
(
compareFn
?:
function
)
:
this
Parameters
Optional
compareFn:
function
(
a
:
SomeStatement
, b
:
SomeStatement
)
:
number
Parameters
a:
SomeStatement
b:
SomeStatement
Returns
number
Returns
this
splice
splice
(
start
:
number
, deleteCount
?:
number
)
:
SomeStatement[]
splice
(
start
:
number
, deleteCount
:
number
,
...
items
:
SomeStatement[]
)
:
SomeStatement[]
Parameters
start:
number
Optional
deleteCount:
number
Returns
SomeStatement[]
Parameters
start:
number
deleteCount:
number
Rest
...
items:
SomeStatement[]
Returns
SomeStatement[]
to
Locale
String
to
Locale
String
(
)
:
string
Returns
string
to
String
to
String
(
)
:
string
Returns
string
unshift
unshift
(
...
items
:
SomeStatement[]
)
:
number
Parameters
Rest
...
items:
SomeStatement[]
Returns
number
values
values
(
)
:
IterableIterator
<
SomeStatement
>
Returns
IterableIterator
<
SomeStatement
>
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method