Edit this page

up.util up.util.only(object, ...keys)
JavaScript function

This feature has been deprecated. Use up.util.pick() instead.

Load unpoly-migrate.js to polyfill deprecated features.

Returns a copy of the given object that only contains the given keys.


Parameters

object Object
...keys Array