ToBool returns the boolean value of the value.
()
| 131 | |
| 132 | // ToBool returns the boolean value of the value. |
| 133 | func (v *Value) ToBool() bool { |
| 134 | return C.JS_ToBool(v.ctx.ref, v.ref) == 1 |
| 135 | } |
| 136 | |
| 137 | // String returns the string representation of the value. |
| 138 | // This method implements the fmt.Stringer interface. |
no outgoing calls