array

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAnArray     = errors.New("The given value must be an Array")
	ErrNotImplemented = errors.New("Browser not implemented Array")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface Array

func IsArray

func IsArray(bobj baseobject.BaseObject) (bool, error)

Types

type Array

type Array struct {
	baseobject.BaseObject
}

Array struct

func From

func From(iterable interface{}, f ...func(interface{}) interface{}) (Array, error)

func From_

func From_(iterable interface{}, f ...func(interface{}) interface{}) Array

func New

func New(values ...interface{}) (Array, error)

func NewEmpty

func NewEmpty(size int) (Array, error)

func NewEmpty_

func NewEmpty_(size int) Array

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Array, error)

func NewFromJSObject_

func NewFromJSObject_(obj js.Value) Array

func New_

func New_(values ...interface{}) Array

func Of

func Of(values ...interface{}) (Array, error)

func Of_

func Of_(values ...interface{}) Array

func (Array) Array_

func (a Array) Array_() Array

func (Array) Concat

func (a Array) Concat(a2 Array) (Array, error)

func (Array) Concat_

func (a Array) Concat_(a2 Array) Array

func (Array) CopyWithin

func (a Array) CopyWithin(cible int, opts ...int) (Array, error)

func (Array) CopyWithin_

func (a Array) CopyWithin_(cible int, opts ...int) Array

func (Array) Entries

func (a Array) Entries() (iterator.Iterator, error)

func (Array) Every

func (a Array) Every(f func(interface{}) bool) (bool, error)

func (Array) Fill

func (a Array) Fill(i interface{}, opts ...int) error

Fill (value, begin, end)

func (Array) Filter

func (a Array) Filter(f func(interface{}) bool) (Array, error)

func (Array) Filter_

func (a Array) Filter_(f func(interface{}) bool) Array

func (Array) Find

func (a Array) Find(f func(interface{}) bool) (interface{}, error)

func (Array) FindIndex

func (a Array) FindIndex(f func(interface{}) bool) (int, error)

func (Array) Flat

func (a Array) Flat(opts ...int) (Array, error)

func (Array) FlatMap

func (a Array) FlatMap(f func(interface{}, int) interface{}) (Array, error)

func (Array) FlatMap_

func (a Array) FlatMap_(f func(interface{}, int) interface{}) Array

func (Array) Flat_

func (a Array) Flat_(opts ...int) Array

func (Array) ForEach

func (a Array) ForEach(f func(interface{})) error

func (Array) GetValue

func (a Array) GetValue(index int) (interface{}, error)

func (Array) Includes

func (a Array) Includes(i interface{}) (bool, error)

func (Array) IndexOf

func (a Array) IndexOf(i interface{}) (int, error)

func (Array) Join

func (a Array) Join(separator string) (string, error)

func (Array) Keys

func (a Array) Keys() (iterator.Iterator, error)

func (Array) LastIndexOf

func (a Array) LastIndexOf(i interface{}) (int, error)

func (Array) Length

func (a Array) Length() (int, error)

func (Array) Map

func (a Array) Map(f func(interface{}) interface{}) (Array, error)

func (Array) Map_

func (a Array) Map_(f func(interface{}) interface{}) Array

func (Array) Pop

func (a Array) Pop() error

func (Array) Push

func (a Array) Push(i interface{}) (int, error)

func (Array) Reduce

func (a Array) Reduce(f func(accumulateur interface{}, value interface{}, opts ...interface{}) interface{}, initialValue ...interface{}) (interface{}, error)

func (Array) ReduceRight

func (a Array) ReduceRight(f func(accumulateur interface{}, value interface{}, opts ...interface{}) interface{}, initialValue ...interface{}) (interface{}, error)

func (Array) Reverse

func (a Array) Reverse() error

func (Array) SetValue

func (a Array) SetValue(index int, i interface{}) error

func (Array) Shift

func (a Array) Shift() (interface{}, error)

func (Array) Slice

func (a Array) Slice(opts ...int) (Array, error)

func (Array) Slice_

func (a Array) Slice_(opts ...int) Array

func (Array) Some

func (a Array) Some(f func(interface{}) bool) (bool, error)

func (Array) Sort

func (a Array) Sort() error

func (Array) Splice

func (a Array) Splice(begin, suppress int, values ...interface{}) error

func (Array) ToLocaleString

func (a Array) ToLocaleString() (string, error)

func (Array) Unshift

func (a Array) Unshift(values ...interface{}) (int, error)

func (Array) Values

func (a Array) Values() (iterator.Iterator, error)

type ArrayFrom

type ArrayFrom interface {
	Array_() Array
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL