• function

keys can.Observe.keys

 

Iterate over the keys of an Observe.

can.Observe.keys(observe)

Parameters

  1. observe {can.Observe}

    the can.Observe to get the keys from

Returns

{Array}

array An array containing the keys from observe.

keys iterates over an observe to get an array of its keys.

var people = new can.Observe({
    a: 'Alice',
    b: 'Bob',
    e: 'Eve'
});

can.Observe.keys(people); // ['a', 'b', 'e']