/* jshint node: true */

'use strict';

/**
 * Copyright 2015, Yahoo! Inc.
 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */

var _ = require('lodash');
var castArray = require('./cast-array');

function unique(array) {
  var found = Object.create(null);
  var out = [];

  castArray(array).forEach(function(item) {
    if (typeof item !== 'string' || found[item.toLocaleLowerCase()]) {
      return;
    }

    out.push(item);
    found[item.toLocaleLowerCase()] = true;
  });

  return out;
};

module.exports = unique;

@@ -172,35 +172,8 @@
 */%0A%0A
-var _ = require('lodash');%0A
 var 

Remove lingering require on lodash