Add comment

This commit is contained in:
Jarred Sumner
2023-05-24 15:45:39 -07:00
parent 1ea74238cd
commit 29969bc130

View File

@@ -3773,6 +3773,10 @@ pub const JSValue = enum(JSValueReprInt) {
return res;
}
/// Returns true if
/// - `" string literal"`
/// - `new String("123")`
/// - `class DerivedString extends String; new DerivedString("123")`
pub inline fn isString(this: JSValue) bool {
if (!this.isCell())
return false;