- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TypeFunction (0.15 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) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Error", Type, 0}, {"Func", Type, 0}, {"FuncOf", Func, 0}, {"Global", Func, 0}, {"Null", Func, 0}, {"Type", Type, 0}, {"TypeBoolean", Const, 0}, {"TypeFunction", Const, 0}, {"TypeNull", Const, 0}, {"TypeNumber", Const, 0}, {"TypeObject", Const, 0}, {"TypeString", Const, 0}, {"TypeSymbol", Const, 0}, {"TypeUndefined", Const, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)