=proto int duk_put_prop_string(duk_context *ctx, int obj_index, const char *key); =stack [ ... obj! ... val! ] -> [ ... obj! ... ] =summary

Like duk_put_prop(), but the property name is given as a NUL-terminated C string key.

=example duk_push_string(ctx, "value"); rc = duk_put_prop_string(ctx, -3, "key"); printf("rc=%d\n", rc);