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
required
Type: Object
...keys
required
Type: Array