index.js
function objectIsMusicTrack(obj) {
    if ((obj.Name || obj.Artist)
        && !obj['Playlist ID']
        && (obj.Kind ==
            ('MPEG audio file'
                || 'AAC audio file'
                || 'Matched AAC audio file'
                || 'Protected AAC audio file'
                || 'Purchased AAC audio file')))
        return true;
    else
        return false;
}
function objectIsMusicTrack(obj) {
    if ((obj.Name || obj.Artist)
        && !obj['Playlist ID']
        && (obj.Kind ==
            ('MPEG audio file'
                || 'AAC audio file'
                || 'Matched AAC audio file'
                || 'Protected AAC audio file'
                || 'Purchased AAC audio file')))
        return true;
    else
        return false;
}
function objectIsMusicTrack ( obj ) { if ( ( obj . Name || obj . Artist ) && ! obj [ 'Playlist ID' ] && ( obj . Kind == ( 'MPEG audio file' || 'AAC audio file' || 'Matched AAC audio file' || 'Protected AAC audio file' || 'Purchased AAC audio file' ) ) ) return true ; else return false ; }
Ensures we have a music track and not a video or other non-music item.

@param  Object
@return Boolean
Ensures we have a music track and not a video or other non - music item .