3rd Party JavaScript Libraries

  • Hi,

    I'm trying to use the _ (underscore.js) library in my QT project but I think I'm missing somthing. Here's what I'm doing:

    @import "underscore.js" as UnderScore
    data = UnderScore.invoke([[5, 1, 7], [3, 2, 1]], 'sort')

    However whenever the underscore function is called I get a type error:

    TypeError: Property 'contains' of object [object Object] is not a function

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.