docs(operator): fix keyof

This commit is contained in:
ruanyf
2023-08-21 23:26:48 +08:00
parent e0cd6ed70f
commit ec0a6ded25

View File

@@ -148,7 +148,8 @@ function prop(obj, key) {
```javascript
function prop(
obj:object, key:string
obj: { [p:string]: any },
key: string
):any {
return obj[key];
}