Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How this js code works

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #208032
    Kuzyo
    Participant

    Hi.
    Found strange code snippet and can’t understand how this code works and what it doing. Can’t somebody explain. Thanks in advance.

    var {title, profile, component, shareable} = mapping[item.key] && mapping[item.key]() || {};
    
    #208044
    nkrisc
    Participant

    What’s the context?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.