We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While lodash union works perfectly fine Extendify with union strategy makes array of strings a complete mess
describe('extendify', function() { var chai = require('chai'); var expect = chai.expect; describe('lodash', function() { var _ = require('lodash'); it('lodash union', function() { expect(_.union(['mocha', 'chai', 'closure'], ['closure'])) .deep.equal(['mocha', 'chai', 'closure']); // OK }); }); describe('extendify', function() { it('union array of strings', function() { var extend = require('extendify')({ arrays: 'union', inPlace: false }); expect(extend(['mocha', 'chai', 'closure'], ['closure'])) .deep.equal(['mocha', 'chai', 'closure'] // WTF ['closure', 'chai', 'closure'] ); }); }); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
While lodash union works perfectly fine
Extendify with union strategy makes array of strings a complete mess
The text was updated successfully, but these errors were encountered: