spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/AppxManifest.js
function ensureUniqueCapabilities(capabilities) {
    var uniqueCapabilities = [];
    capabilities.getchildren()
    .forEach(function(el) {
        var name = el.attrib.Name;
        if (uniqueCapabilities.indexOf(name) !== -1) {
            capabilities.remove(el);
        } else {
            uniqueCapabilities.push(name);
        }
    });
}
function ensureUniqueCapabilities(capabilities) {
    var uniqueCapabilities = [];
    capabilities.getchildren()
    .forEach(function(el) {
        var name = el.attrib.Name;
        if (uniqueCapabilities.indexOf(name) !== -1) {
            capabilities.remove(el);
        } else {
            uniqueCapabilities.push(name);
        }
    });
}
Cleans up duplicate capability declarations that were generated during the prepare process
@param capabilities {ElementTree.Element} The appx manifest element for <capabilities>