- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TypeFunction (0.12 sec)
-
src/syscall/js/js.go
case TypeString: return "string" case TypeSymbol: return "symbol" case TypeObject: return "object" case TypeFunction: return "function" default: panic("bad type") } } func (t Type) isObject() bool { return t == TypeObject || t == TypeFunction } // Type returns the JavaScript type of the value v. It is similar to JavaScript's typeof operator,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 19.5K bytes - Viewed (0) -
src/syscall/js/js_test.go
} if got, want := js.Global().Get("Array").New().Type(), js.TypeObject; got != want { t.Errorf("got %s, want %s", got, want) } if got, want := js.Global().Get("Array").Type(), js.TypeFunction; got != want { t.Errorf("got %s, want %s", got, want) } } type object = map[string]any type array = []any func TestValueOf(t *testing.T) { a := js.ValueOf(array{0, array{0, 42, 0}, 0})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0)