Nodejs Array Union union(t)

Here you can find the source of union(t)

Method Source Code

Array.prototype.union = function(t)
{
// s.union(t) -->
// new set with elements from both s and t
    return this.concat(t).unique();
}

Related

  1. union(a, b)
    Array.union = function(a, b){
         return a.concat(b).uniquelize();
    };
    
  2. union(arr)
    Array.prototype.union = function (arr) {
      return this.concat(arr).distinct();
    };
    
  3. union(ary)
    Array.prototype.union = function (ary) {
        return this.concat(ary).distinct();
    };
    
  4. union(b)
    Array.prototype.union = function(b) {
      return this.concat(b).uniquelize();
    };
    
  5. union(other)
    Array.prototype.union = function (other) {
      var hash = {};
      for (var i = 0; i < this.length; i++) {
        hash[this[i]] = true;
      for (var j = 0; j < other.length; j++) {
        hash[other[j]] = true;
      return Object.keys(hash);
    ...
    
  6. getUnionAttrStr(filed,split)
    Array.prototype.getUnionAttrStr=function(filed,split){
      try{
      var unionStr=new String();
      if(!split){
        split=",";
      for(var i=0;i<this.length;i++){
        var tempVal=this[i][filed];
        unionStr+=tempVal+split;
    ...
    
  7. getUnionAttrStr(filed,split)
    Array.prototype.getUnionAttrStr=function(filed,split){
      try{
      var unionStr=new String();
      if(!split){
        split=Toyz4js["cfg"]["array_separator"];
      for(var i=0;i<this.length;i++){
        var tempVal=this[i][filed];
        unionStr+=tempVal+split;
    ...
    
  8. getUnionStr(filed,split)
    Array.prototype.getUnionStr=function(filed,split){
      try{
      var unionStr=new String();
      if(!split){
        split=",";
      for(var i=0;i<this.length;i++){
        var tempVal=this[i][filed];
        unionStr+=tempVal+split;
    ...