Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTruthy (0.18 sec)

  1. src/syscall/js/js_test.go

    // - https://developer.mozilla.org/en-US/docs/Glossary/Truthy
    // - https://stackoverflow.com/questions/19839952/all-falsey-values-in-javascript/19839953#19839953
    // - http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
    func TestTruthy(t *testing.T) {
    	want := true
    	for _, key := range []string{
    		"someBool", "someString", "someInt", "someFloat", "someArray", "someDate",
    		"stringZero", // "0" is truthy
    		"add",        // functions are truthy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
Back to top