DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
  • Infrastructure
  • Legacy
    • can-ejs
    • can-list
    • can-map
      • prototype
        • DEFAULT-ATTR
        • attr
        • bind
        • compute
        • each
        • removeAttr
        • serialize
        • unbind
      • static
        • keys
    • can-map-backup
    • can-map-define
    • can-view-href
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Legacy
  • /
  • can-map
  • /
  • keys
  • / On this page
    • keys

      function

      Returns an array of the map's keys.

      • source

      Map.keys(map)

      var people = new Map({
              a: 'Alice',
              b: 'Bob',
              e: 'Eve'
      });
      
      Map.keys(people); // ['a', 'b', 'e']
      

      Parameters

      1. map {can-map}:

        the Map to get the keys from

      Returns

      {Array}:

      array An array containing the keys from map.

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.