name: duk_pop_n proto: | void duk_pop_n(duk_context *ctx, duk_idx_t count); stack: | [ ... val1! ...! valN! ] -> [ ... ] summary: |

Pop count elements off the stack. If the stack has fewer than count elements, throws an error. If count is zero, the call is a no-op. Negative counts cause an error to be thrown.

example: | duk_pop_n(ctx, 10); tags: - stack introduced: 1.0.0